[packages] ntpclient: prevent stalling of hotplug events when waiting for server response (#6201)

git-svn-id: svn://svn.openwrt.org/openwrt/packages@18478 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2009-11-22 15:09:56 +00:00
parent 35fe52ab80
commit 90fdacab65
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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() {