| 1 | #!/bin/sh |
| 2 | # |
| 3 | # /etc/rc.d/ntpdate: sync time via ntp |
| 4 | # |
| 5 | |
| 6 | case $1 in |
| 7 | start) |
| 8 | /usr/bin/ntpdate pool.ntp.org 1>/dev/null & |
| 9 | ;; |
| 10 | stop) |
| 11 | ;; |
| 12 | restart) |
| 13 | $0 start |
| 14 | ;; |
| 15 | *) |
| 16 | echo "usage: $0 [start|stop|restart]" |
| 17 | ;; |
| 18 | esac |
| 19 | |
| 20 | # End of file |