sync-ntp-clock 293 B

123456789101112
  1. #!/bin/sh
  2. if [ -x /usr/libexec/ntpdate-wrapper ]; then
  3. /usr/libexec/ntpdate-wrapper
  4. elif [ -x /etc/init.d/ntpdate ]; then
  5. /etc/init.d/ntpdate restart
  6. elif [ -x /usr/sbin/ntpdate ]; then
  7. /usr/sbin/ntpdate pool.ntp.org
  8. else
  9. echo "No ntpdate installed, giving up."
  10. exit 1
  11. fi