This commit is contained in:
Your Name 2024-09-10 14:38:21 -06:00
parent 10ee25d0ac
commit 2ad67b418e

View File

@ -414,6 +414,42 @@ watch() {
done
}
menu() {
clear
echo
echo "=============================FireWall==================================="
echo "1. Start"
echo "2. Stop"
echo "3. Reseearch"
echo "4. Forgive"
echo "5. Quit"
echo "========================================================================"
echo
read -p 'Choice: ' CHOICE
echo
if [ "$CHOICE" = "1" ]; then
echo
echo "Starting Firewall"
start
read -p 'Press Enter to Continue ' -e -i continue
elif [ "$CHOICE" = "2" ]; then
echo
echo "Stopping Firewall"
stop
read -p 'Press Enter to Continue ' -e -i continue
elif [ "$CHOICE" = "3" ]; then
research
read -p 'Press Enter to Continue ' -e -i continue
elif [ "$CHOICE" = "4" ]; then
forgive
read -p 'Press Enter to Continue ' -e -i continue
elif [ "$CHOICE" = "5" ]; then
exit
fi
menu
}
if [ "$1" = "start" ]; then
start
elif [ "$1" = "virt" ]; then
@ -437,5 +473,5 @@ elif [ "$1" = "stop" ]; then
elif [ "$1" = "saved" ]; then
saved-bots
else
echo "Invalid Choice"
menu
fi