From a93378167f20a455eb22b9125eeb06fbec57d7e4 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 22 Nov 2009 15:09:56 +0000 Subject: [PATCH] ntpclient: prevent stalling of hotplug events when waiting for server response (#6201) SVN-Revision: 18478 --- net/ntpclient/Makefile | 2 +- net/ntpclient/files/ntpclient.hotplug | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() { -- 2.30.2