Created
November 25, 2017 15:11
-
-
Save fape/5280ee6f6e787c41b08b6b7ae721db07 to your computer and use it in GitHub Desktop.
rdate m1q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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