From cdede8cac3995fc81ac11e57b4d3fc58028562c8 Mon Sep 17 00:00:00 2001 From: joellen Date: Sat, 8 Jul 2000 19:48:51 +0000 Subject: [PATCH] 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. --- Configure | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Configure b/Configure index 3ada03f..5691dcf 100755 --- a/Configure +++ b/Configure @@ -49,8 +49,9 @@ fail () } usage () { - $ECHO "usage: Configure [-d [filename]|-f ]" + $ECHO "usage: Configure [-h|help|-d [filename]|-f ]" $ECHO "" + $ECHO " -h|help - display usage info" $ECHO " -d [filename] - automated configuration with option to specify input file" $ECHO " -f - 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