ntpd start fix
This commit is contained in:
parent
394cc25bf7
commit
cc6e5c9d10
@ -30,6 +30,7 @@ renew|bound)
|
||||
logger -p local0.notice "DHCP IPv4 changed, killing minisatip"
|
||||
rm -f /tmp/satip-network
|
||||
killall -9 minisatip 2> /dev/null
|
||||
killall -9 ntpd 2> /dev/null
|
||||
fi
|
||||
ifconfig $interface $ip $BROADCAST $NETMASK
|
||||
if test -n "$router" ; then
|
||||
|
@ -1,7 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
test -r /etc/sysconfig/config && . /etc/sysconfig/config
|
||||
|
||||
test -z "$NTPD_OPTS" && NTPD_OPTS="-p 0.pool.ntp.org"
|
||||
|
||||
exec /usr/sbin/ntpd -I eth0 $NTPD_OPTS
|
||||
while test ! -f /tmp/nontpd; do
|
||||
NTPD_OPTS=""
|
||||
test -r /etc/sysconfig/config && . /etc/sysconfig/config
|
||||
test -z "$NTPD_OPTS" && NTPD_OPTS="-p 0.pool.ntp.org"
|
||||
/usr/sbin/ntpd -n -I eth0 $NTPD_OPTS
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user