#!/bin/sh

PKG_NAME="${SYNOPKG_PKGNAME:-LyraNest-XiaoAI-Bridge}"

# Ensure cleanly stopped if upgrading/reinstalling
if [ -x "/var/packages/${PKG_NAME}/scripts/start-stop-status" ]; then
    "/var/packages/${PKG_NAME}/scripts/start-stop-status" stop >/dev/null 2>&1 || true
fi

exit 0
