-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbsd-os-menu.env
177 lines (166 loc) · 3.2 KB
/
bsd-os-menu.env
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
source $maindir/bsd-os-functions.env
clear
function BSD()
{
while true
do
# Create a whiptail menu, pass the tool name if selected
linuxselection=$(whiptail --title "Diagnostics" --nocancel \
--menu "Select Tool:" 0 0 4 \
"Back" " Up Level" \
"501" " FreeBSD" \
"502" " NetBSD" \
"503" " OpenBSD" \
"504" " DragonFlyBSD" \
"Exit" " Close and Exit" 3>&1 1>&2 2>&3 )
# Do an action for the selected menu item
case $linuxselection in
"Back" )
return
;;
"501" )
FREEBSD
;;
"502" )
NETBSD
;;
"503" )
OPENBSD
;;
"504" )
DRAGONFLYBSD
;;
"Exit" )
exit
;;
esac
done
}
function FREEBSD()
{
while true
do
# Create a whiptail menu, pass the tool name if selected
freeselection=$(whiptail --title "Diagnostics" --nocancel \
--menu "Select Tool:" 0 0 4 \
"Back" " Up Level" \
"5101" " FreeBSD 13.3 UFS" \
"5102" " FreeBSD 13.3 ZFS" \
"5103" " FreeBSD 14 UFS" \
"5104" " FreeBSD 14 ZFS" \
"Exit" " Close and Exit" 3>&1 1>&2 2>&3 )
# Do an action for the selected menu item
case $freeselection in
"Back" )
return
;;
"5101" )
freebsdufs-13
;;
"5102" )
freebsdzfs-13
;;
"5103" )
freebsdufs-14
;;
"5104" )
freebsdzfs-14
;;
"Exit" )
exit
;;
esac
done
}
function NETBSD()
{
while true
do
# Create a whiptail menu, pass the tool name if selected
netselection=$(whiptail --title "Diagnostics" --nocancel \
--menu "Select Tool:" 0 0 4 \
"Back" " Up Level" \
"5201" " NetBSD 8.2" \
"5202" " NetBSD 9.3" \
"Exit" " Close and Exit" 3>&1 1>&2 2>&3 )
# Do an action for the selected menu item
case $netselection in
"Back" )
return
;;
"5201" )
netbsd-8
;;
"5202" )
netbsd-9
;;
"Exit" )
exit
;;
esac
done
}
function OPENBSD()
{
while true
do
# Create a whiptail menu, pass the tool name if selected
openbsdselection=$(whiptail --title "Diagnostics" --nocancel \
--menu "Select Tool:" 0 0 4 \
"Back" " Up Level" \
"5301" " OpenBSD 7.4" \
"5302" " OpenBSD 7.5" \
"Exit" " Close and Exit" 3>&1 1>&2 2>&3 )
# Do an action for the selected menu item
case $openbsdselection in
"Back" )
return
;;
"5301" )
openbsd-74
;;
"5302" )
openbsd-75
;;
"Exit" )
exit
;;
esac
done
}
function DRAGONFLYBSD()
{
while true
do
# Create a whiptail menu, pass the tool name if selected
dragonselection=$(whiptail --title "Diagnostics" --nocancel \
--menu "Select Tool:" 0 0 4 \
"Back" " Up Level" \
"5401" " DragonFlyBSD 6.2.2 UFS" \
"5402" " DragonFlyBSD 6.2.2 Hammer2" \
"5403" " DragonFlyBSD 6.4 UFS" \
"5404" " DragonFlyBSD 6.4 Hammer2" \
"Exit" " Close and Exit" 3>&1 1>&2 2>&3 )
# Do an action for the selected menu item
case $dragonselection in
"Back" )
return
;;
"5401" )
dragonbsdufs-62
;;
"5402" )
dragonbsdham-62
;;
"5403" )
dragonbsdufs-64
;;
"5404" )
dragonbsdham-64
;;
"Exit" )
exit
;;
esac
done
}