From caa37a0bde2ac047ba763b839dec5d5339002210 Mon Sep 17 00:00:00 2001 From: torben Date: Tue, 4 Sep 2018 17:27:25 +0200 Subject: fix. --- .../hooks/prepare-network-service-in-newroot.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/modules.d/systemd-networkd-ext/hooks/prepare-network-service-in-newroot.sh b/modules.d/systemd-networkd-ext/hooks/prepare-network-service-in-newroot.sh index 5ed9a835..f04cee06 100755 --- a/modules.d/systemd-networkd-ext/hooks/prepare-network-service-in-newroot.sh +++ b/modules.d/systemd-networkd-ext/hooks/prepare-network-service-in-newroot.sh @@ -23,9 +23,7 @@ if $SLX_ONLINE; then "$path". fi done - # NOTE: We remove known target configurations if "$SLX_WIRELESS_MAC" is to - # "false". - if [[ "$SLX_WIRELESS_MAC" != '' ]]; then + if [[ "$SLX_WIRELESS_MAC" != false ]]; then path="$NEWROOT/etc/systemd/system/multi-user.target.wants/iwd.service" if rm "$path" &>/dev/null; then bl.logging.info \ @@ -69,10 +67,7 @@ if $SLX_ONLINE; then "$service_file_path" \ "$NEWROOT_SYSINIT_TARGET_DIR/$service_name" done - if \ - [[ "$SLX_WIRELESS_MAC" != '' ]] && \ - [[ "$SLX_WIRELESS_MAC" != false ]] - then + if [[ "$SLX_WIRELESS_MAC" != false ]]; then service_name=wpa_supplicant@wireless.service #service_name=iwd.service service_file_path="$( -- cgit v1.2.3-55-g7522