Browse Source

- skel-root/cst: move shutdown_helper call to own init script ...

and call it at end of rcK
master
vanhofen 7 years ago
parent
commit
7407396445
  1. 20
      skel-root/coolstream/hd1/etc/init.d/custom-poweroff
  2. 3
      skel-root/coolstream/hd1/etc/init.d/rcK
  3. 11
      skel-root/coolstream/hd1/etc/init.d/start_neutrino
  4. 20
      skel-root/coolstream/hd2/etc/init.d/custom-poweroff
  5. 3
      skel-root/coolstream/hd2/etc/init.d/rcK
  6. 11
      skel-root/coolstream/hd2/etc/init.d/start_neutrino

20
skel-root/coolstream/hd1/etc/init.d/custom-poweroff

@ -0,0 +1,20 @@
#!/bin/sh
. /etc/init.d/globals
case $1 in
stop)
TIMER="/tmp/.timer"
test -e $TIMER || exit 0
if type shutdown_helper > /dev/null; then
# send current time, wakeup time, led and bright settings to frontpanel
PARAM=`cat $TIMER`
SHOWINFO "calling 'shutdown_helper "$PARAM"'"
shutdown_helper $PARAM
fi
;;
*)
echo "[$BASENAME] Usage: $0 {stop}"
;;
esac

3
skel-root/coolstream/hd1/etc/init.d/rcK

@ -23,3 +23,6 @@ LOGINFO "run initscripts stop ..."
run_initscripts stop
SHOWINFO "done"
# send current time, wakeup time, led and bright settings to frontpanel
service custom-poweroff stop

11
skel-root/coolstream/hd1/etc/init.d/start_neutrino

@ -12,17 +12,6 @@ do_cleanup() {
do_shutdown() {
dt -t"SHUTDOWN"
TIMER="/tmp/.timer"
if [ -e $TIMER ]; then
# send timers, led and bright settings to frontpanel
if type shutdown_helper > /dev/null; then
PARAM=`cat $TIMER`
echo "calling 'shutdown_helper "$PARAM"'"
shutdown_helper $PARAM
fi
fi
poweroff
}

20
skel-root/coolstream/hd2/etc/init.d/custom-poweroff

@ -0,0 +1,20 @@
#!/bin/sh
. /etc/init.d/globals
case $1 in
stop)
TIMER="/tmp/.timer"
test -e $TIMER || exit 0
if type shutdown_helper > /dev/null; then
# send current time, wakeup time, led and bright settings to frontpanel
PARAM=`cat $TIMER`
SHOWINFO "calling 'shutdown_helper "$PARAM"'"
shutdown_helper $PARAM
fi
;;
*)
echo "[$BASENAME] Usage: $0 {stop}"
;;
esac

3
skel-root/coolstream/hd2/etc/init.d/rcK

@ -23,3 +23,6 @@ LOGINFO "run initscripts stop ..."
run_initscripts stop
SHOWINFO "done"
# send current time, wakeup time, led and bright settings to frontpanel
service custom-poweroff stop

11
skel-root/coolstream/hd2/etc/init.d/start_neutrino

@ -16,17 +16,6 @@ do_cleanup() {
do_shutdown() {
dt -t"SHUTDOWN"
TIMER="/tmp/.timer"
if [ -e $TIMER ]; then
# send timers, led and bright settings to frontpanel
if type shutdown_helper > /dev/null; then
PARAM=`cat $TIMER`
echo "calling 'shutdown_helper "$PARAM"'"
shutdown_helper $PARAM
fi
fi
poweroff
}

Loading…
Cancel
Save