projects
/
feed
/
packages.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ntpd: cleanup Makefile and hotplug script
[feed/packages.git]
/
net
/
ntpd
/
files
/
ntpd.hotplug-helper
1
#!/bin/sh
2
3
while
true
4
do
5
STATUS
=
"$(/usr/sbin/ntpq -c 'rv 0 stratum'|awk -F '=' '{ print
$2
}')"
6
7
if
[
-n
"
$STATUS
"
] && [
"
$STATUS
"
-lt
"16"
]
8
then
9
ACTION
=
"stratum"
/
sbin
/
hotplug-call ntp
10
exit
0
11
fi
12
sleep
10
13
done