contrib/ntp/ntpdate
2009-06-04 19:09:27 +02:00

21 lines
227 B
Bash
Executable File

#!/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