You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
2.4 KiB
76 lines
2.4 KiB
#
|
|
# makefile to install system scripts
|
|
#
|
|
# -----------------------------------------------------------------------------
|
|
|
|
init-scripts: \
|
|
$(TARGET_DIR)/etc/init.d/globals \
|
|
$(TARGET_DIR)/etc/init.d/functions \
|
|
$(TARGET_DIR)/etc/init.d/camd \
|
|
$(TARGET_DIR)/etc/init.d/camd_datefix \
|
|
$(TARGET_DIR)/etc/init.d/coredump \
|
|
$(TARGET_DIR)/etc/init.d/crond \
|
|
$(TARGET_DIR)/etc/init.d/hostname \
|
|
$(TARGET_DIR)/etc/init.d/inetd \
|
|
$(TARGET_DIR)/etc/init.d/swap \
|
|
$(TARGET_DIR)/etc/init.d/syslogd
|
|
|
|
$(TARGET_DIR)/etc/init.d/globals:
|
|
install -D -m 0644 $(IMAGEFILES)/scripts/init.globals $@
|
|
|
|
$(TARGET_DIR)/etc/init.d/functions:
|
|
install -D -m 0644 $(IMAGEFILES)/scripts/init.functions $@
|
|
|
|
$(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 bre2ze4k))
|
|
install -D -m 0755 $(IMAGEFILES)/scripts/coredump.init $@
|
|
endif
|
|
|
|
$(TARGET_DIR)/etc/init.d/crond:
|
|
install -D -m 0755 $(IMAGEFILES)/scripts/crond.init $@
|
|
ln -sf crond $(TARGET_DIR)/etc/init.d/S55crond
|
|
ln -sf crond $(TARGET_DIR)/etc/init.d/K55crond
|
|
|
|
$(TARGET_DIR)/etc/init.d/hostname:
|
|
install -D -m 0755 $(IMAGEFILES)/scripts/hostname.init $@
|
|
|
|
$(TARGET_DIR)/etc/init.d/inetd:
|
|
install -D -m 0755 $(IMAGEFILES)/scripts/inetd.init $@
|
|
ln -sf inetd $(TARGET_DIR)/etc/init.d/S53inetd
|
|
ln -sf inetd $(TARGET_DIR)/etc/init.d/K80inetd
|
|
|
|
$(TARGET_DIR)/etc/init.d/swap:
|
|
ifeq ($(BOXSERIES), $(filter $(BOXSERIES), hd51 bre2ze4k))
|
|
install -D -m 0755 $(IMAGEFILES)/scripts/swap.init $@
|
|
ln -sf swap $(TARGET_DIR)/etc/init.d/K99swap
|
|
endif
|
|
|
|
$(TARGET_DIR)/etc/init.d/syslogd:
|
|
install -D -m 0755 $(IMAGEFILES)/scripts/syslogd.init $@
|
|
ln -sf syslogd $(TARGET_DIR)/etc/init.d/K98syslogd
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
scripts: \
|
|
$(TARGET_DIR)/sbin/service \
|
|
$(TARGET_DIR)/sbin/flash_eraseall \
|
|
$(TARGET_SHARE_DIR)/udhcpc/default.script
|
|
|
|
$(TARGET_DIR)/sbin/service:
|
|
install -D -m 0755 $(IMAGEFILES)/scripts/service $@
|
|
|
|
$(TARGET_DIR)/sbin/flash_eraseall:
|
|
ifeq ($(BOXTYPE), coolstream)
|
|
install -D -m 0755 $(IMAGEFILES)/scripts/flash_eraseall $@
|
|
endif
|
|
|
|
$(TARGET_SHARE_DIR)/udhcpc/default.script:
|
|
install -D -m 0755 $(IMAGEFILES)/scripts/udhcpc-default.script $@
|
|
|