value=".mangyguitmp" touch .mangyguitmp dialog --backtitle "MaNGy GUI" \ --menu "Select an action:" 10 40 4 \ 1 "Install Mangos" \ 2 "Install SDB" \ 3 "Update Mangos" \ 4 "Update SDB" 2>$value chose=`cat $value` if [ $chose 1 ] then echo installing mangos elseif [ $chose 2 ] then echo installing sdb elseif [ $chose 3 ] then echo updating mangos elseif [ $chose 4 ] then echo updating sdb else fi rm .mangyguitmp