|
@ -30,5 +30,16 @@ if [ -e /tmp/.reboot ]; then # gets created by neutrino |
|
|
reboot |
|
|
reboot |
|
|
elif [ -e /tmp/.halt ]; then |
|
|
elif [ -e /tmp/.halt ]; then |
|
|
dt -t"SHUTDOWN" |
|
|
dt -t"SHUTDOWN" |
|
|
|
|
|
|
|
|
|
|
|
TIMER="/tmp/.timer" |
|
|
|
|
|
if [ -e $TIMER ]; then |
|
|
|
|
|
# custom poweroff binary |
|
|
|
|
|
if type shutdown_helper > /dev/null; then |
|
|
|
|
|
PARAM=`cat $TIMER` |
|
|
|
|
|
echo "calling 'shutdown_helper "$PARAM"'" |
|
|
|
|
|
shutdown_helper $PARAM |
|
|
|
|
|
fi |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
poweroff |
|
|
poweroff |
|
|
fi |
|
|
fi |
|
|