Browse Source

- cst/hd2: fix profile.local and rc.local

master
vanhofen 4 years ago
parent
commit
21dc7c91af
  1. 3
      make/target-files.mk
  2. 3
      make/target-scripts.mk
  3. 2
      skel-root/general/files-etc/rc.local
  4. 14
      skel-root/general/files-etc/rc.local-var
  5. 6
      skel-root/general/scripts/rc.local.init

3
make/target-files.mk

@ -57,9 +57,8 @@ $(TARGET_sysconfdir)/profile:
$(TARGET_sysconfdir)/profile.local: $(TARGET_sysconfdir)/profile.local:
ifeq ($(PERSISTENT_VAR_PARTITION),yes) ifeq ($(PERSISTENT_VAR_PARTITION),yes)
$(INSTALL_DATA) -D $(TARGET_FILES)/files-etc/profile.local-var $(TARGET_localstatedir)/etc/profile.local $(INSTALL_DATA) -D $(TARGET_FILES)/files-etc/profile.local-var $(TARGET_localstatedir)/etc/profile.local
else
$(INSTALL_DATA) -D $(TARGET_FILES)/files-etc/profile.local $(@)
endif endif
$(INSTALL_DATA) -D $(TARGET_FILES)/files-etc/profile.local $(@)
$(TARGET_sysconfdir)/profile.d: $(TARGET_sysconfdir)/profile.d:
$(foreach p,$(wildcard $(TARGET_FILES)/files-etc/profile.d/*.sh),\ $(foreach p,$(wildcard $(TARGET_FILES)/files-etc/profile.d/*.sh),\

3
make/target-scripts.mk

@ -73,6 +73,9 @@ $(TARGET_sysconfdir)/init.d/rc.local:
$(INSTALL_EXEC) -D $(TARGET_FILES)/scripts/rc.local.init $(@) $(INSTALL_EXEC) -D $(TARGET_FILES)/scripts/rc.local.init $(@)
$(UPDATE-RC.D) $(@F) start 99 2 3 4 5 . $(UPDATE-RC.D) $(@F) start 99 2 3 4 5 .
$(INSTALL_EXEC) -D $(TARGET_FILES)/files-etc/rc.local $(TARGET_sysconfdir)/rc.local $(INSTALL_EXEC) -D $(TARGET_FILES)/files-etc/rc.local $(TARGET_sysconfdir)/rc.local
ifeq ($(PERSISTENT_VAR_PARTITION),yes)
$(INSTALL_DATA) -D $(TARGET_FILES)/files-etc/rc.local-var $(TARGET_localstatedir)/etc/rc.local
endif
$(TARGET_sysconfdir)/init.d/resizerootfs: $(TARGET_sysconfdir)/init.d/resizerootfs:
ifeq ($(BOXMODEL),$(filter $(BOXMODEL),hd51 bre2ze4k h7 hd60 hd61)) ifeq ($(BOXMODEL),$(filter $(BOXMODEL),hd51 bre2ze4k h7 hd60 hd61))

2
skel-root/general/files-etc/rc.local

@ -1,6 +1,6 @@
#!/bin/sh -e #!/bin/sh -e
# #
# rc.local # /etc/rc.local
# #
# This script is executed at the end of each multiuser runlevel. # This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other # Make sure that the script will "exit 0" on success or any other

14
skel-root/general/files-etc/rc.local-var

@ -0,0 +1,14 @@
#!/bin/sh -e
#
# /var/etc/rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
exit 0

6
skel-root/general/scripts/rc.local.init

@ -4,7 +4,11 @@
case $1 in case $1 in
start) start)
/etc/rc.local if [ -e /var/etc/rc.local ]; then
/var/etc/rc.local
elif [ -e /etc/rc.local ]; then
/etc/rc.local
fi
;; ;;
*) *)
echo "[${BASENAME}] Usage: $0 {start}" echo "[${BASENAME}] Usage: $0 {start}"

Loading…
Cancel
Save