Browse Source

- move custom-poweroff init script away from skel-root

master
vanhofen 6 years ago
parent
commit
d4becc5a52
  1. 6
      make/target-scripts.mk
  2. 20
      skel-root/coolstream/hd2/etc/init.d/custom-poweroff
  3. 0
      skel-root/general/scripts/custom-poweroff.init

6
make/target-scripts.mk

@ -10,6 +10,7 @@ init-scripts: \
$(TARGET_DIR)/etc/init.d/camd_datefix \
$(TARGET_DIR)/etc/init.d/coredump \
$(TARGET_DIR)/etc/init.d/crond \
$(TARGET_DIR)/etc/init.d/custom-poweroff \
$(TARGET_DIR)/etc/init.d/hostname \
$(TARGET_DIR)/etc/init.d/inetd \
$(TARGET_DIR)/etc/init.d/swap \
@ -39,6 +40,11 @@ $(TARGET_DIR)/etc/init.d/crond:
ln -sf crond $(TARGET_DIR)/etc/init.d/S55crond
ln -sf crond $(TARGET_DIR)/etc/init.d/K55crond
$(TARGET_DIR)/etc/init.d/custom-poweroff:
ifeq ($(BOXTYPE), coolstream)
$(INSTALL_EXEC) -D $(IMAGEFILES)/scripts/custom-poweroff.init $@
endif
$(TARGET_DIR)/etc/init.d/hostname:
$(INSTALL_EXEC) -D $(IMAGEFILES)/scripts/hostname.init $@

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

@ -1,20 +0,0 @@
#!/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

0
skel-root/coolstream/hd1/etc/init.d/custom-poweroff → skel-root/general/scripts/custom-poweroff.init

Loading…
Cancel
Save