From: Peter Wagner Date: Tue, 17 Jan 2017 22:49:20 +0000 (+0100) Subject: ntpd: cleanup Makefile and hotplug script X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=fe80861f7c0d19afc34f3550e6e8e3ea604de98b;p=openwrt-packages.git ntpd: cleanup Makefile and hotplug script Signed-off-by: Peter Wagner --- diff --git a/net/ntpd/Makefile b/net/ntpd/Makefile index e16669611..f1e57ad4f 100644 --- a/net/ntpd/Makefile +++ b/net/ntpd/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ntp PKG_VERSION:=4.2.8p9 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ @@ -117,7 +117,7 @@ define Package/ntpd/install $(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpd/ntpd $(1)/sbin/ $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpq/ntpq $(1)/usr/sbin/ - $(INSTALL_BIN) ./files/ntpd.hotplug-helper $(1)/usr/sbin/ntpd.hotplug-helper + $(INSTALL_BIN) ./files/ntpd.hotplug-helper $(1)/usr/sbin/ $(INSTALL_DIR) $(1)/etc $(INSTALL_CONF) ./files/ntp.conf $(1)/etc/ $(INSTALL_DIR) $(1)/etc/init.d diff --git a/net/ntpd/files/ntpd.hotplug-helper b/net/ntpd/files/ntpd.hotplug-helper index 39d3df0f7..555825c64 100644 --- a/net/ntpd/files/ntpd.hotplug-helper +++ b/net/ntpd/files/ntpd.hotplug-helper @@ -1,10 +1,8 @@ #!/bin/sh -HOTPLUG_SCRIPT=/usr/sbin/ntpd-hotplug - while true do - STATUS="$(ntpq -c 'rv 0 stratum'|awk -F '=' '{ print $2 }')" + STATUS="$(/usr/sbin/ntpq -c 'rv 0 stratum'|awk -F '=' '{ print $2 }')" if [ -n "$STATUS" ] && [ "$STATUS" -lt "16" ] then