Browse Source

- hd6x: try to fix shutdown

master
vanhofen 4 years ago
parent
commit
dc08d7e514
  1. 7
      make/target-scripts.mk
  2. 3
      skel-root/general/scripts/halt.init

7
make/target-scripts.mk

@ -15,6 +15,7 @@ init-scripts: \
$(TARGET_DIR)/etc/init.d/crond \
$(TARGET_DIR)/etc/init.d/custom-poweroff \
$(TARGET_DIR)/etc/init.d/fstab \
$(TARGET_DIR)/etc/init.d/halt \
$(TARGET_DIR)/etc/init.d/hostname \
$(TARGET_DIR)/etc/init.d/inetd \
$(TARGET_DIR)/etc/init.d/mdev \
@ -65,6 +66,12 @@ $(TARGET_DIR)/etc/init.d/fstab:
$(INSTALL_EXEC) -D $(TARGET_FILES)/scripts/fstab.init $(@)
$(UPDATE-RC.D) $(@F) defaults 01 98
$(TARGET_DIR)/etc/init.d/halt:
ifeq ($(BOXMODEL), $(filter $(BOXMODEL), hd60 hd61))
$(INSTALL_EXEC) -D $(TARGET_FILES)/scripts/halt.init $(@)
$(UPDATE-RC.D) $(@F) start 90 0 .
endif
$(TARGET_DIR)/etc/init.d/hostname:
$(INSTALL_EXEC) -D $(TARGET_FILES)/scripts/hostname.init $(@)

3
skel-root/general/scripts/halt.init

@ -0,0 +1,3 @@
#!/bin/sh
halt -d -f -p
Loading…
Cancel
Save