i have the following code but i don't know what's wrong with it.. can anyone help
the quit command doesn't run..
quit = n
host="$(hostname)"
todaysdate="$(date)"
lastboot="$(last reboot)"
licensinginfo="$(uname -a)"
currenthardwareinfo="$(info)"
diskspace="$(df)"
software="$(usr/bin)"
processes="$(ps)"
IPAddress="$(/sbin/ifconfig)"
while [ "$quit" = "n" ]
do
clear
echo "1. General machine information"
echo "2. Machine hardware/software information"
echo "3. Network related information"
echo "4. User related information"
echo "Q. Quit"
echo "Please make your selection"
read menunumber
if [ $menunumber -eq 1 ]
then
echo " The hostname is $host"
echo " The date is $todaysdate"
echo " The system last rebooted is $lastboot"
echo " Licensing info:$licensinginfo"
echo " Press Enter Key to continue"
read ;
else if [ $menunumber -eq 2 ]
then
echo " Current Hardware: $currenthardwareinfo"
echo " Disk space: $diskspace"
echo " Installed Software: $software"
echo " Processes: $processes"
echo " Press Enter Key to continue"
read ;
else if [ $menunumber -eq 3 ]
then
echo "IP Address: $IPAddress"
echo " Press Enter Key to continue"
read ;
else if Q|q) exit;
*) echo "Invalid Choice"
fi
fi
fi
sleep 1
done