-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspot
More file actions
114 lines (83 loc) · 1.94 KB
/
spot
File metadata and controls
114 lines (83 loc) · 1.94 KB
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
#!/bin/bash
# MENU DE SELECTION POUR Spotnik-3.1
#
# F5NLG 08/09/2020
#
while : ; do
choix=$(whiptail --title "Spotnik Menu 3.1" --menu " >> Make your Choice: " 28 60 21 \
1 " Restart Spotnik on Stand Alone '95'" \
2 " Restart Spotnik on RRF '96'" \
3 " Restart Spotnik on FON Room '97'" \
4 " Restart Spotnik on TEC Room '98'" \
5 " Restart Spotnik on INT Room '99'" \
6 " Restart Spotnik on BAV Room '100'" \
7 " Restart Spotnik on LOC Room '101'" \
8 " Restart Spotnik on EXP Room '102'" \
9 " Restart Spotnik on EchoLink '103'" \
10 " Restart Spotnik on Regional '104'" \
11 " See Spotnik working (Logs) 'ctrl c'to leave" \
12 " Configure Wifi or network" \
13 " Trim Sound Alsamixer" \
14 " Edit Svxlink.cfg for all reflectors" \
15 " Edit Svxlink.el for EchoLink." \
16 " Edit ModuleEchoLink.conf" \
17 " Edit Airport for meteo" \
18 " MC Midnight Commander" \
19 " Configure mail account for Propagation Monitor" \
20 " Configure SA818 Radio Spotnik Delta only " \
21 " Configure Dwagent " 3>&1 1>&2 2>&3)
exitstatus=$?
#on recupere ce choix
#exitstatus=$?
if [ $exitstatus = 0 ]; then
echo "Your chosen option:" $choix
else
echo "You chose Cancel."; break;
fi
# case : action en fonction du choix
case $choix in
1)
/etc/spotnik/restart.default ;;
2)
/etc/spotnik/restart.rrf ;;
3)
/etc/spotnik/restart.fon ;;
4)
/etc/spotnik/restart.tec ;;
5)
/etc/spotnik/restart.int ;;
6)
/etc/spotnik/restart.bav ;;
7)
/etc/spotnik/restart.loc ;;
8)
/etc/spotnik/restart.exp ;;
9)
/etc/spotnik/restart.el ;;
10)
/etc/spotnik/restart.reg ;;
11)
/etc/spotnik/view_svx ;;
12)
nmtui ;;
13)
alsamixer && alsactl store ;;
14)
mcedit /etc/spotnik/svxlink.cfg ;;
15)
mcedit /etc/spotnik/svxlink.el ;;
16)
mcedit /etc/spotnik/svxlink.d/ModuleEchoLink.conf ;;
17)
mcedit /etc/spotnik/svxlink.d/ModuleMetarInfo.conf ;;
18)
mc /etc/spotnik ;;
19)
fetchsetup ;;
20)
818-prog ;;
21)
sh /usr/share/dwagent/native/configure ;;
esac
done
exit 0