Added support to Configdata script to read IP addresses from input file before prompting user or doing the automated configuration. Added -h|help options to all Configure scripts to be able to print the usage info for the Configure script.
This commit is contained in:
parent
3d283f0e1e
commit
cdede8cac3
|
@ -49,8 +49,9 @@ fail ()
|
|||
}
|
||||
|
||||
usage () {
|
||||
$ECHO "usage: Configure [-d [filename]|-f <filename>]"
|
||||
$ECHO "usage: Configure [-h|help|-d [filename]|-f <filename>]"
|
||||
$ECHO ""
|
||||
$ECHO " -h|help - display usage info"
|
||||
$ECHO " -d [filename] - automated configuration with option to specify input file"
|
||||
$ECHO " -f <filename> - read configuration data from file and prompt user"
|
||||
exit 1
|
||||
|
@ -68,6 +69,9 @@ fi
|
|||
|
||||
PROMPT=y
|
||||
if [ $# -gt 0 ] ; then
|
||||
if [ "$1" = "-h" -o "$1" = "help" ] ; then
|
||||
usage
|
||||
fi
|
||||
if [ "$1" = "-d" -o "$1" = "-f" ] ; then
|
||||
if [ $# -gt 1 ] ; then
|
||||
if [ -r $2 ]; then
|
||||
|
|
Loading…
Reference in New Issue