From 697b796c58aeb1af6a28eaee1cec3d65685db40b Mon Sep 17 00:00:00 2001 From: Simon Brulhart Date: Sun, 28 May 2023 15:17:39 +0200 Subject: [PATCH] Fix clean-up of unmanaged devices --- src/scripts/create_ap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/create_ap b/src/scripts/create_ap index 7731e0b..524dd80 100755 --- a/src/scripts/create_ap +++ b/src/scripts/create_ap @@ -509,7 +509,7 @@ networkmanager_add_unmanaged() { fi mutex_lock - UNMANAGED=$(grep -m1 -Eo '^unmanaged-devices=[[:alnum:]:;,-]*' /etc/NetworkManager/NetworkManager.conf) + UNMANAGED=$(grep -m1 -Eo '^unmanaged-devices=[[:alnum:]:;,?*~=-]*' /etc/NetworkManager/NetworkManager.conf) WAS_EMPTY=0 [[ -z "$UNMANAGED" ]] && WAS_EMPTY=1 @@ -566,7 +566,7 @@ networkmanager_rm_unmanaged() { fi mutex_lock - UNMANAGED=$(grep -m1 -Eo '^unmanaged-devices=[[:alnum:]:;,-]*' /etc/NetworkManager/NetworkManager.conf | sed 's/unmanaged-devices=//' | tr ';,' ' ') + UNMANAGED=$(grep -m1 -Eo '^unmanaged-devices=[[:alnum:]:;,?*~=-]*' /etc/NetworkManager/NetworkManager.conf | sed 's/unmanaged-devices=//' | tr ';,' ' ') if [[ -z "$UNMANAGED" ]]; then mutex_unlock