wifi
This commit is contained in:
@@ -15,6 +15,8 @@ if [ -z "$CHOSEN_SSID" ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
CHOSEN_SSID="${CHOSEN_SSID%?}"
|
||||||
|
|
||||||
# Tjek om vi allerede er forbundet til det valgte netværk
|
# Tjek om vi allerede er forbundet til det valgte netværk
|
||||||
if nmcli connection show --active | grep -wq "^${CHOSEN_SSID}"; then
|
if nmcli connection show --active | grep -wq "^${CHOSEN_SSID}"; then
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user