RN - Menu

This commit is contained in:
ITmail-dk
2022-01-03 12:02:17 +01:00
parent d9ff51596a
commit 3a9e47c8d2
4 changed files with 35 additions and 7 deletions

27
setup-menu.sh Normal file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
PS3='Choose menu 1, 2, 3, Reboot, Exit.:'
smenu=("1" "2" "3" "Reboot" "Exit")
select smenu in "${smenuc[@]}"; do
case $smenuc in
"1")
echo "Nr. 1"
# optionally call a function or run some code here
;;
"2")
echo "Nr. 2"
# optionally call a function or run some code here
;;
"3")
echo "VM Copy Keys..."
. copy-vm-keys.sh
break
;;
"Reboot")
sudo reboot
;;
"Quit")
exit
;;
*) echo "Invalid option. $REPLY";;
esac
done