-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.sh
83 lines (82 loc) · 1.09 KB
/
menu.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/bin/bash
# (c) J~NET 2021
# jnet.sytes.net
#
#
#
#
trap '
trap - INT # restore default INT handler
kill -s INT "$$"
' INT
#
file="/usr/bin/git"
if [[ -f $file ]]
then
echo ""
else
sudo apt install -y git
fi
#
# setup menu perms
#sudo chmod +x *sh
#
#clear
echo -en "\e[92mWelcome To J~Net RPI Menu 2021"
echo ""
echo ""
echo "1. App List (Menu 1)"
echo "2. Other Software (Menu 2)"
echo "3. Extra (Menu 3)"
echo "4. OS List (Menu 4)"
echo "5. J~Net Links (Menu 5)"
echo "6. Bonus (Menu 6)"
echo "7. 2023 (Menu 7)"
echo "8. Exit Menu"
echo "Enter your choice: (Anything else to exit)"
read n
case $n in
1)
clear
# op 1
bash M1.sh
# returning to menu
bash menu.sh ;;
2)
clear
# op 2
bash M2.sh
# returning to menu
bash menu.sh ;;
3)
clear
# op 3
bash M3.sh
# returning to menu
bash menu.sh ;;
4)
clear
# op 4
bash M4.sh
# returning to menu
bash menu.sh ;;
5)
clear
# op 5
bash M5.sh
# returning to menu
bash menu.sh ;;
# send arg here
6)
clear
bash extra.sh ;;
7)
clear
bash M6.sh
# returning to menu
bash menu.sh ;;
8)
clear
# op 7
exit ;;
esac