Skip to content

Instantly share code, notes, and snippets.

@fape
Created November 25, 2017 15:11
Show Gist options
  • Save fape/5280ee6f6e787c41b08b6b7ae721db07 to your computer and use it in GitHub Desktop.
Save fape/5280ee6f6e787c41b08b6b7ae721db07 to your computer and use it in GitHub Desktop.
rdate m1q
#!/bin/sh
#
# update date....
# /etc/init.d/S99date, chmod +x S99date
#
case "$1" in
start|restart|reload)
echo "Update date..."
/usr/sbin/rdate -s 192.168.2.1
;;
stop)
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit $?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment