contrib/ntp/ntpdate

21 lines
227 B
Plaintext
Raw Normal View History

#!/bin/sh
#
# /etc/rc.d/ntpdate: sync time via ntp
#
case $1 in
start)
/usr/bin/ntpdate pool.ntp.org 1>/dev/null &
;;
stop)
;;
restart)
$0 start
;;
*)
echo "usage: $0 [start|stop|restart]"
;;
esac
# End of file