Browse Source

- system-scripts.mk: rework

master
vanhofen 6 years ago
parent
commit
947b48c8ef
  1. 74
      make/system-scripts.mk

74
make/system-scripts.mk

@ -4,43 +4,57 @@
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
init-scripts: \ init-scripts: \
init-helpers \ $(TARGET_DIR)/etc/init.d/globals \
init-coredump \ $(TARGET_DIR)/etc/init.d/functions \
init-crond \ $(TARGET_DIR)/etc/init.d/camd \
init-inetd \ $(TARGET_DIR)/etc/init.d/camd_datefix \
init-hostname \ $(TARGET_DIR)/etc/init.d/coredump \
init-camd $(TARGET_DIR)/etc/init.d/crond \
$(TARGET_DIR)/etc/init.d/hostname \
init-helpers: $(ETCINITD) $(TARGET_DIR)/etc/init.d/inetd
install -m 0644 $(IMAGEFILES)/scripts/init.globals $(ETCINITD)/globals
install -m 0644 $(IMAGEFILES)/scripts/init.functions $(ETCINITD)/functions $(TARGET_DIR)/etc/init.d/globals:
install -D -m 0644 $(IMAGEFILES)/scripts/init.globals $@
init-hostname: $(ETCINITD)
install -m 0755 $(IMAGEFILES)/scripts/hostname.init $(ETCINITD)/hostname $(TARGET_DIR)/etc/init.d/functions:
install -D -m 0644 $(IMAGEFILES)/scripts/init.functions $@
init-coredump: $(ETCINITD)
$(TARGET_DIR)/etc/init.d/camd:
install -D -m 0755 $(IMAGEFILES)/scripts/camd.init $@
ln -sf camd $(TARGET_DIR)/etc/init.d/S99camd
ln -sf camd $(TARGET_DIR)/etc/init.d/K01camd
$(TARGET_DIR)/etc/init.d/camd_datefix:
install -D -m 0755 $(IMAGEFILES)/scripts/camd_datefix.init $@
$(TARGET_DIR)/etc/init.d/coredump:
ifeq ($(BOXSERIES), $(filter $(BOXSERIES), hd2 hd51)) ifeq ($(BOXSERIES), $(filter $(BOXSERIES), hd2 hd51))
install -m 0755 $(IMAGEFILES)/scripts/coredump.init $(ETCINITD)/coredump install -D -m 0755 $(IMAGEFILES)/scripts/coredump.init $@
endif endif
init-crond: $(ETCINITD) $(TARGET_DIR)/etc/init.d/crond:
install -m 0755 $(IMAGEFILES)/scripts/crond.init $(ETCINITD)/crond install -D -m 0755 $(IMAGEFILES)/scripts/crond.init $@
init-inetd: $(ETCINITD) $(TARGET_DIR)/etc/init.d/hostname:
install -m 0755 $(IMAGEFILES)/scripts/inetd.init $(ETCINITD)/inetd install -D -m 0755 $(IMAGEFILES)/scripts/hostname.init $@
init-camd: $(ETCINITD) $(TARGET_DIR)/etc/init.d/inetd:
install -m 0755 $(IMAGEFILES)/scripts/camd.init $(ETCINITD)/camd install -D -m 0755 $(IMAGEFILES)/scripts/inetd.init $@
install -m 0755 $(IMAGEFILES)/scripts/camd_datefix.init $(ETCINITD)/camd_datefix
$(CD) $(ETCINITD); \
ln -sf camd S99camd; \
ln -sf camd K01camd
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
scripts: $(SBIN) scripts: \
install -m 0755 $(IMAGEFILES)/scripts/service $(SBIN) $(TARGET_DIR)/sbin/service \
$(TARGET_DIR)/sbin/flash_eraseall \
$(TARGET_DIR)/share/udhcpc/default.script
$(TARGET_DIR)/sbin/service:
install -D -m 0755 $(IMAGEFILES)/scripts/service $@
$(TARGET_DIR)/sbin/flash_eraseall:
ifeq ($(BOXTYPE), coolstream) ifeq ($(BOXTYPE), coolstream)
install -m 0755 $(IMAGEFILES)/scripts/flash_eraseall $(SBIN) install -D -m 0755 $(IMAGEFILES)/scripts/flash_eraseall $@
endif endif
install -D -m 0755 $(IMAGEFILES)/scripts/udhcpc-default.script $(TARGET_DIR)/share/udhcpc/default.script
$(TARGET_DIR)/share/udhcpc/default.script:
install -D -m 0755 $(IMAGEFILES)/scripts/udhcpc-default.script $@

Loading…
Cancel
Save