Browse Source

- move ntpdate init script away from skel-root

master
vanhofen 6 years ago
parent
commit
11de4c9aea
  1. 0
      archive-imagefiles/scripts/ntpdate.init
  2. 3
      make/system-tools.mk
  3. 17
      skel-root/coolstream/hd1/etc/init.d/ntpdate
  4. 17
      skel-root/coolstream/hd2/etc/init.d/ntpdate

0
skel-root/armbox/hd51/etc/init.d/ntpdate → archive-imagefiles/scripts/ntpdate.init

3
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)

17
skel-root/coolstream/hd1/etc/init.d/ntpdate

@ -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

17
skel-root/coolstream/hd2/etc/init.d/ntpdate

@ -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
Loading…
Cancel
Save