This file contains hidden or 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 | |
# | |
# chkconfig: 2345 15 85 | |
# description: Maintains default route by restarting network | |
# | |
# This script (when run with the "run-loop" argument) checks if the | |
# default route is still present, and if not the network service is | |
# restarted. The timestamp of when the failure was detected is | |
# logged. | |
# |
This file contains hidden or 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 | |
# | |
# Example showing use of getopt detection and use of GNU enhanced getopt | |
# to handle arguments containing whitespace. | |
# | |
# Written in 2004 by Hoylen Sue <[email protected]> | |
# | |
# To the extent possible under law, the author(s) have dedicated all copyright and | |
# related and neighboring rights to this software to the public domain worldwide. | |
# This software is distributed without any warranty. |