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"
|
logger -p local0.notice "DHCP IPv4 changed, killing minisatip"
|
||||||
rm -f /tmp/satip-network
|
rm -f /tmp/satip-network
|
||||||
killall -9 minisatip 2> /dev/null
|
killall -9 minisatip 2> /dev/null
|
||||||
|
killall -9 ntpd 2> /dev/null
|
||||||
fi
|
fi
|
||||||
ifconfig $interface $ip $BROADCAST $NETMASK
|
ifconfig $interface $ip $BROADCAST $NETMASK
|
||||||
if test -n "$router" ; then
|
if test -n "$router" ; then
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
while test ! -f /tmp/nontpd; do
|
||||||
|
NTPD_OPTS=""
|
||||||
test -r /etc/sysconfig/config && . /etc/sysconfig/config
|
test -r /etc/sysconfig/config && . /etc/sysconfig/config
|
||||||
|
|
||||||
test -z "$NTPD_OPTS" && NTPD_OPTS="-p 0.pool.ntp.org"
|
test -z "$NTPD_OPTS" && NTPD_OPTS="-p 0.pool.ntp.org"
|
||||||
|
/usr/sbin/ntpd -n -I eth0 $NTPD_OPTS
|
||||||
exec /usr/sbin/ntpd -I eth0 $NTPD_OPTS
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user