From de1cfbdfbdabd7af8839a3ffd127b96999d4525b Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Wed, 7 Dec 2022 18:25:02 +0100 Subject: [PATCH] fix check --- usr/lib/archboot/installer/network.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/lib/archboot/installer/network.sh b/usr/lib/archboot/installer/network.sh index dc1daa740..ab6ee1733 100644 --- a/usr/lib/archboot/installer/network.sh +++ b/usr/lib/archboot/installer/network.sh @@ -107,8 +107,8 @@ donetwork() { echo "wpa_supplicant config saved to ${WPA_PROFILE}." > "${LOG}" echo "Starting wpa_supplicant@${INTERFACE}.service ..." > "${LOG}" systemctl restart wpa_supplicant@${INTERFACE}.service - if ! systemctl is-active --quiet wpa_supplicant@${INTERFACE}.service; then - DIALOG --msgbox "Error:\nAuthentification was not successfull, please configure again!" 4 70 + if systemctl status wpa_supplicant@${INTERFACE}.service | grep -qw failed; then + DIALOG --msgbox "Error:\nAuthentification failed, please configure again!" 5 60 WPA_AUTH="" else WPA_AUTH="1"