You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/sh
|
|
|
|
while true
|
|
do
|
|
STATUS="$(/usr/sbin/ntpq -c 'rv 0 stratum')"
|
|
STATUS="${STATUS#*=}"
|
|
|
|
if [ -n "$STATUS" ] && [ "$STATUS" -lt "16" ]
|
|
then
|
|
ACTION="stratum" /sbin/hotplug-call ntp
|
|
exit 0
|
|
fi
|
|
sleep 10
|
|
done
|