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:
joellen 2000-07-08 19:48:51 +00:00
parent 3d283f0e1e
commit cdede8cac3
1 changed files with 5 additions and 1 deletions

View File

@ -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