contrib/ntp/ntpdate
2008-03-16 00:11:22 +01:00

21 lines
225 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