|
|
@ -103,25 +103,35 @@ networksmenu() { |
|
|
|
" | |
|
|
|
" | |
|
|
|
awk '{$1=$1};1' | grep '\w' | dmenu -c -p 'Networks' -l 14 |
|
|
|
awk '{$1=$1};1' | grep '\w' | dmenu -c -p 'Networks' -l 14 |
|
|
|
)" |
|
|
|
)" |
|
|
|
if [ "$CHOICE" = "System Menu" ]; then |
|
|
|
case "$CHOICE" in |
|
|
|
sxmo_appmenu.sh sys && exit |
|
|
|
"System Menu" ) |
|
|
|
elif [ "$CHOICE" = "Close Menu" ]; then |
|
|
|
sxmo_appmenu.sh sys && exit |
|
|
|
exit |
|
|
|
;; |
|
|
|
elif [ "$CHOICE" = "Add a GSM Network" ]; then |
|
|
|
"Close Menu" ) |
|
|
|
addnetworkgsmmenu |
|
|
|
exit |
|
|
|
elif [ "$CHOICE" = "Add a WPA Network" ]; then |
|
|
|
;; |
|
|
|
addnetworkwpamenu |
|
|
|
"Add a GSM Network" ) |
|
|
|
elif [ "$CHOICE" = "Delete a Network" ]; then |
|
|
|
addnetworkgsmmenu |
|
|
|
deletenetworkmenu |
|
|
|
;; |
|
|
|
elif [ "$CHOICE" = "Launch Nmtui" ]; then |
|
|
|
"Add a WPA Network" ) |
|
|
|
st -e nmtui & |
|
|
|
addnetworkwpamenu |
|
|
|
elif [ "$CHOICE" = "Launch Ifconfig" ]; then |
|
|
|
;; |
|
|
|
st -e watch -n 2 ifconfig & |
|
|
|
"Delete a Network" ) |
|
|
|
elif [ "$CHOICE" = "Scan Wifi Networks" ]; then |
|
|
|
deletenetworkmenu |
|
|
|
st -e watch -n 2 nmcli d wifi list & |
|
|
|
;; |
|
|
|
else |
|
|
|
"Launch Nmtui" ) |
|
|
|
toggleconnection "$CHOICE" |
|
|
|
st -e nmtui & |
|
|
|
fi |
|
|
|
;; |
|
|
|
|
|
|
|
"Launch Ifconfig" ) |
|
|
|
|
|
|
|
st -e watch -n 2 ifconfig & |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
"Scan Wifi Networks" ) |
|
|
|
|
|
|
|
st -e watch -n 2 nmcli d wifi list & |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
*) |
|
|
|
|
|
|
|
toggleconnection "$CHOICE" |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
esac |
|
|
|
done |
|
|
|
done |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|