#
#  Build script for etc/saninput.txt
#  $Id: //depot/stable/explorer/build/saninput.txt#3 $
#

EXP_ETC="/etc/opt/SUNWexplo"

# ${EXP_ETC}/saninput.txt builder
if [ "$1" = install ]; then
    if [ ! -f "${EXP_ETC}/saninput.txt" ]
    then
	# File header
	echo "# Input file for extended data collection"
	echo "# Format is SWITCH SWITCH-TYPE PASSWORD LOGIN"
	echo "# Valid switch types are ancor and brocade"
	echo "# LOGIN is required for brocade switches, the default is admin"
    fi
fi

# ${EXP_ETC}/saninput.txt deconstructor
if [ "$1" = remove ]; then
    if [ -f "${EXP_ETC}/saninput.txt" ]; then
	cat ${EXP_ETC}/saninput.txt
    fi
fi
