Add reboot option
This commit is contained in:
parent
03988f2aae
commit
c63ea088fb
@ -31,7 +31,8 @@ while true; do
|
|||||||
echo "Welcome to windvn!"
|
echo "Welcome to windvn!"
|
||||||
echo "1: Fast install"
|
echo "1: Fast install"
|
||||||
echo "2: Open bash"
|
echo "2: Open bash"
|
||||||
echo "3: Shut down"
|
echo "3: Reboot"
|
||||||
|
echo "4: Shut down"
|
||||||
read -p "Choice: " CHOICE
|
read -p "Choice: " CHOICE
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
@ -140,6 +141,11 @@ while true; do
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$CHOICE" == "3" ]; then
|
if [ "$CHOICE" == "3" ]; then
|
||||||
|
reboot
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$CHOICE" == "4" ]; then
|
||||||
poweroff
|
poweroff
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user