diff --git a/skel-root/armbox/hd51/etc/init.d/ntpdate b/archive-imagefiles/scripts/ntpdate.init old mode 100755 new mode 100644 similarity index 100% rename from skel-root/armbox/hd51/etc/init.d/ntpdate rename to archive-imagefiles/scripts/ntpdate.init diff --git a/make/system-tools.mk b/make/system-tools.mk index 093f42c8..4e688d37 100644 --- a/make/system-tools.mk +++ b/make/system-tools.mk @@ -252,7 +252,8 @@ $(D)/ntp: $(ARCHIVE)/ntp-$(NTP_VER).tar.gz $(D)/openssl | $(TARGET_DIR) --without-ntpsnmpd \ ; \ $(MAKE) - mv -v $(BUILD_TMP)/ntp-$(NTP_VER)/ntpdate/ntpdate $(TARGET_DIR)/sbin/ + install -D -m755 $(BUILD_TMP)/ntp-$(NTP_VER)/ntpdate/ntpdate $(TARGET_DIR)/sbin/ntpdate + install -D -m755 $(IMAGEFILES)/scripts/ntpdate.init $(TARGET_DIR)/etc/init.d/ntpdate $(REMOVE)/ntp-$(NTP_VER) $(TOUCH) diff --git a/skel-root/coolstream/hd1/etc/init.d/ntpdate b/skel-root/coolstream/hd1/etc/init.d/ntpdate deleted file mode 100755 index 2a9936db..00000000 --- a/skel-root/coolstream/hd1/etc/init.d/ntpdate +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -. /etc/init.d/functions -. /etc/init.d/globals - -case "$1" in - start) - ntpatboot=$(get_setting network_ntpatboot) - ntpserver=$(get_setting network_ntpserver) - if [ "$ntpatboot" == "true" ]; then - ntpdate ${ntpserver:-0.de.pool.ntp.org} - fi - ;; - *) - echo "[$BASENAME] Usage: $0 {start}" - ;; -esac diff --git a/skel-root/coolstream/hd2/etc/init.d/ntpdate b/skel-root/coolstream/hd2/etc/init.d/ntpdate deleted file mode 100755 index 2a9936db..00000000 --- a/skel-root/coolstream/hd2/etc/init.d/ntpdate +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -. /etc/init.d/functions -. /etc/init.d/globals - -case "$1" in - start) - ntpatboot=$(get_setting network_ntpatboot) - ntpserver=$(get_setting network_ntpserver) - if [ "$ntpatboot" == "true" ]; then - ntpdate ${ntpserver:-0.de.pool.ntp.org} - fi - ;; - *) - echo "[$BASENAME] Usage: $0 {start}" - ;; -esac