From: Jo-Philipp Wich Date: Sun, 22 Nov 2009 15:09:56 +0000 (+0000) Subject: ntpclient: prevent stalling of hotplug events when waiting for server response (... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a93378167f20a455eb22b9125eeb06fbec57d7e4;p=openwrt%2Fsvn-archive%2Fpackages.git ntpclient: prevent stalling of hotplug events when waiting for server response (#6201) SVN-Revision: 18478 --- diff --git a/net/ntpclient/Makefile b/net/ntpclient/Makefile index 5633e7a2f..f2ceae9c4 100644 --- a/net/ntpclient/Makefile +++ b/net/ntpclient/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ntpclient PKG_VERSION:=2007_365 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://doolittle.icarus.com/ntpclient/ diff --git a/net/ntpclient/files/ntpclient.hotplug b/net/ntpclient/files/ntpclient.hotplug index 29f17c177..7399264d1 100644 --- a/net/ntpclient/files/ntpclient.hotplug +++ b/net/ntpclient/files/ntpclient.hotplug @@ -16,7 +16,7 @@ check_server() { config_get hostname $1 hostname config_get port $1 port [ -z "$hostname" ] && return - $NTPC -c 1 -p ${port:-123} -h $hostname > /dev/null && { SERVER=$hostname; PORT=${port:-123}; } + $NTPC -c 1 -p ${port:-123} -i 2 -h $hostname > /dev/null && { SERVER=$hostname; PORT=${port:-123}; } } set_drift() {