fix
This commit is contained in:
parent
10ee25d0ac
commit
2ad67b418e
38
firewall2.sh
38
firewall2.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user