ntpdate 227 B

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