All pastes #388086 Raw Edit

Miscellany

public shellscript v1 · immutable
·published 2007-03-09 20:48 UTC
rendered paste body
#! /bin/shtest -f /usr/sbin/ntpdate || exit 0# Instructions:#   update the line below that calls ntpdate to include a list of IP #   addresses of NTP servers you wish to query to learn the time to set#   the local clock to.  Then, comment out the next two lines that contain#   the echo and the exit.  #echo "You must customize /etc/init.d/ntpdate before ntpdate can be run."#exit 0case "$1" instart(  echo -n "Running ntpdate to synchronize clock"  /usr/sbin/ntpdate -b -s 213.171.221.57  echo "."  ;;stop|restart|force-reload)  ;;*)  echo "Usage: /etc/init.d/ntpdate {start|stop|restart|force-reload}"  exit 1esacexit 0