sysmngr: run reset_reason if present

This commit is contained in:
Vivek Kumar Dutta 2025-11-18 10:43:13 +05:30 committed by Vivek Dutta
parent 2c9a35eb8c
commit b087faf6b9

View file

@ -1,10 +1,19 @@
#!/bin/sh /etc/rc.common #!/bin/sh /etc/rc.common
START=15 START=12
STOP=8 STOP=8
USE_PROCD=1 USE_PROCD=1
PROG=/usr/sbin/sysmngr PROG=/usr/sbin/sysmngr
RESET_REASON="/etc/sysmngr/reset_reason"
boot()
{
if [ -x "${RESET_REASON}" ]; then
eval ${RESET_REASON}
fi
start
}
start_service() start_service()
{ {