Browse Source

- add runlevel links for coolstream shutdown helper

master
vanhofen 5 years ago
parent
commit
35da93755f
  1. 1
      make/target-scripts.mk
  2. 4
      skel-root/general/scripts/custom-poweroff.init
  3. 3
      skel-root/hd1/etc/init.d/rcK
  4. 3
      skel-root/hd2/etc/init.d/rcK

1
make/target-scripts.mk

@ -51,6 +51,7 @@ $(TARGET_DIR)/etc/init.d/crond:
$(TARGET_DIR)/etc/init.d/custom-poweroff:
ifeq ($(BOXTYPE), coolstream)
$(INSTALL_EXEC) -D $(TARGET_FILES)/scripts/custom-poweroff.init $(@)
$(UPDATE-RC.D) $(@F) start 99 0 6 .
endif
$(TARGET_DIR)/etc/init.d/fstab:

4
skel-root/general/scripts/custom-poweroff.init

@ -3,7 +3,7 @@
. /etc/init.d/globals
case $1 in
stop)
start)
TIMER="/tmp/.timer"
test -e $TIMER || exit 0
@ -15,6 +15,6 @@ case $1 in
fi
;;
*)
echo "[$BASENAME] Usage: $0 {stop}"
echo "[$BASENAME] Usage: $0 {start}"
;;
esac

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

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

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

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

Loading…
Cancel
Save