Different menu style
This commit is contained in:
parent
45c484420b
commit
e96027b8d3
|
@ -2275,41 +2275,37 @@ function menu_app_settings {
|
||||||
function menu_top_level {
|
function menu_top_level {
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
data=$(mktemp 2>/dev/null)
|
W=(1 $"About this system"
|
||||||
dialog --backtitle $"Freedombone Control Panel" \
|
2 $"Passwords"
|
||||||
--title $"Control Panel" \
|
3 $"Backup and Restore"
|
||||||
--radiolist $"Choose an operation:" 30 70 22 \
|
4 $"Show Firewall"
|
||||||
1 $"About this system" off \
|
5 $"Verify Tripwire Code"
|
||||||
2 $"Passwords" off \
|
6 $"Reset Tripwire"
|
||||||
3 $"Backup and Restore" off \
|
7 $"App Settings"
|
||||||
4 $"Show Firewall" off \
|
8 $"Add/Remove Apps"
|
||||||
5 $"Verify Tripwire Code" off \
|
9 $"Logging on/off"
|
||||||
6 $"Reset Tripwire" off \
|
10 $"Ping enable/disable"
|
||||||
7 $"App Settings" off \
|
11 $"Manage Users"
|
||||||
8 $"Add/Remove Apps" off \
|
12 $"Email Menu"
|
||||||
9 $"Logging on/off" off \
|
13 $"Domain or User Blocking"
|
||||||
10 $"Ping enable/disable" off \
|
14 $"Security Settings"
|
||||||
11 $"Manage Users" off \
|
15 $"Change the name of this system"
|
||||||
12 $"Email Menu" off \
|
16 $"Set a static local IP address"
|
||||||
13 $"Domain or User Blocking" off \
|
17 $"Wifi menu"
|
||||||
14 $"Security Settings" off \
|
18 $"Add Clacks"
|
||||||
15 $"Change the name of this system" off \
|
19 $"Check for updates"
|
||||||
16 $"Set a static local IP address" off \
|
20 $"Power off the system"
|
||||||
17 $"Wifi menu" off \
|
21 $"Restart the system")
|
||||||
18 $"Add Clacks" off \
|
|
||||||
19 $"Check for updates" off \
|
# shellcheck disable=SC2068
|
||||||
20 $"Power off the system" off \
|
selection=$(dialog --backtitle $"Freedombone Control Panel" --title $"Control Panel" --menu $"Choose an operation, or ESC to exit:" 24 40 17 "${W[@]}" 3>&2 2>&1 1>&3)
|
||||||
21 $"Restart the system" off \
|
if [ ! "$selection" ]; then
|
||||||
22 $"Exit" on 2> "$data"
|
break
|
||||||
sel=$?
|
fi
|
||||||
case $sel in
|
|
||||||
1) rm -f "$data"
|
|
||||||
exit 1;;
|
|
||||||
255) rm -f "$data"
|
|
||||||
exit 1;;
|
|
||||||
esac
|
|
||||||
please_wait
|
please_wait
|
||||||
case $(cat "$data") in
|
|
||||||
|
case $selection in
|
||||||
1) show_about;;
|
1) show_about;;
|
||||||
2) view_or_change_passwords;;
|
2) view_or_change_passwords;;
|
||||||
3) menu_backup_restore;;
|
3) menu_backup_restore;;
|
||||||
|
@ -2335,10 +2331,7 @@ function menu_top_level {
|
||||||
19) check_for_updates;;
|
19) check_for_updates;;
|
||||||
20) shut_down_system;;
|
20) shut_down_system;;
|
||||||
21) restart_system;;
|
21) restart_system;;
|
||||||
22) rm -f "$data"
|
|
||||||
break;;
|
|
||||||
esac
|
esac
|
||||||
rm -f "$data"
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue