projects
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
copy trunk to buildroot-ng branch
[openwrt.git]
/
package
/
ntpclient
/
files
/
ntpclient.init
1
#!/bin/sh
2
case "$ACTION" in
3
ifup)
4
ps x | grep '[n]tpclient' >&- || {
5
route -n 2>&- | grep '^0.0.0.0' >&- && /usr/sbin/ntpclient -c 1 -s -h ${ntp_server:-pool.ntp.org} &
6
}
7
;;
8
ifdown)
9
route -n 2>&- | grep '^0.0.0.0' >&- || killall ntpclient 2>&- >&- ;;
10
esac