projects
/
openwrt-10.03
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
a8944c60eb9725b72087565817da5dddb693110f
[openwrt-10.03/.git]
/
openwrt
/
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