2015-04-09 21:27:23 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
main(){
|
|
|
|
clear
|
2015-12-10 05:59:00 +00:00
|
|
|
|
|
|
|
read -p "Please Press 1 to Install or 2 to Uninstall --> : " INPUT
|
|
|
|
if [ "$INPUT" == 1 ]; then
|
|
|
|
sudo cp shellMen /bin/
|
|
|
|
sudo chown root:root /bin/shellMen
|
|
|
|
sudo chmod +x /bin/shellMen
|
|
|
|
elif [ "$INPUT" == 2 ]; then
|
|
|
|
sudo rm /bin/shellMen
|
|
|
|
elif [ "$INPUT" !== 1 ] || [ "$INPUT" !== 2 ] ; then
|
|
|
|
echo "Please type 1 or 2."
|
|
|
|
main
|
|
|
|
fi
|
2015-04-09 21:27:23 +00:00
|
|
|
}
|
|
|
|
main
|
2015-12-10 08:20:28 +00:00
|
|
|
2>"${INPUT}"
|
|
|
|
menuitem=$(<"${INPUT}")
|
|
|
|
case $menuitem in
|
|
|
|
Main_Menu) bash /bin/shellMen ;;
|
|
|
|
esac
|
|
|
|
2>"${INPUT}"
|
|
|
|
menuitem=$(<"${INPUT}")
|
|
|
|
case $menuitem in
|
|
|
|
Main_Menu) bash /bin/shellMen ;;
|
|
|
|
esac
|
|
|
|
2>"${INPUT}"
|
|
|
|
menuitem=$(<"${INPUT}")
|
|
|
|
case $menuitem in
|
|
|
|
Main_Menu) bash /bin/shellMen ;;
|
|
|
|
esac
|
|
|
|
2>"${INPUT}"
|
|
|
|
menuitem=$(<"${INPUT}")
|
|
|
|
case $menuitem in
|
|
|
|
Main_Menu) bash /bin/shellMen ;;
|
|
|
|
esac
|
|
|
|
2>"${INPUT}"
|
|
|
|
menuitem=$(<"${INPUT}")
|
|
|
|
case $menuitem in
|
|
|
|
Main_Menu) bash /bin/shellMen ;;
|
|
|
|
esac
|
|
|
|
2>"${INPUT}"
|
|
|
|
menuitem=$(<"${INPUT}")
|
|
|
|
case $menuitem in
|
|
|
|
Main_Menu) bash /bin/shellMen ;;
|
|
|
|
esac
|