mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
ntpd: cleanup Makefile and hotplug script
Signed-off-by: Peter Wagner <tripolar@gmx.at>
This commit is contained in:
+2
-2
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=ntp
|
PKG_NAME:=ntp
|
||||||
PKG_VERSION:=4.2.8p9
|
PKG_VERSION:=4.2.8p9
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/
|
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_BIN) $(PKG_BUILD_DIR)/ntpd/ntpd $(1)/sbin/
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ntpq/ntpq $(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_DIR) $(1)/etc
|
||||||
$(INSTALL_CONF) ./files/ntp.conf $(1)/etc/
|
$(INSTALL_CONF) ./files/ntp.conf $(1)/etc/
|
||||||
$(INSTALL_DIR) $(1)/etc/init.d
|
$(INSTALL_DIR) $(1)/etc/init.d
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
HOTPLUG_SCRIPT=/usr/sbin/ntpd-hotplug
|
|
||||||
|
|
||||||
while true
|
while true
|
||||||
do
|
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" ]
|
if [ -n "$STATUS" ] && [ "$STATUS" -lt "16" ]
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user