From 62bdafd69ca805951abce11700e6125aa5550182 Mon Sep 17 00:00:00 2001 From: Florian Maurer Date: Sat, 14 Dec 2024 15:54:06 +0100 Subject: [PATCH] ffac-ssid-changer: silence grep if going offline --- ffac-ssid-changer/shsrc/ssid-changer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffac-ssid-changer/shsrc/ssid-changer.sh b/ffac-ssid-changer/shsrc/ssid-changer.sh index 6b85a62d..7a3d73f2 100755 --- a/ffac-ssid-changer/shsrc/ssid-changer.sh +++ b/ffac-ssid-changer/shsrc/ssid-changer.sh @@ -181,7 +181,7 @@ elif [ "$CHECK" -eq 0 ]; then LOOP=1 for HOSTAPD in /var/run/hostapd-*.conf; do [ -e "$HOSTAPD" ] || break # handle the case of no hostapd-* files - grep "^bridge=br-client" "$HOSTAPD" || continue # handle case of private wifi + grep "^bridge=br-client" "$HOSTAPD" > /dev/null || continue # handle case of private wifi # shellcheck disable=SC2086 # ONLINE_SSIDs has multiple lines ONLINE_SSID="$(echo $ONLINE_SSIDs | awk -F '~' -v l=$((LOOP*2)) '{print $l}')" LOOP=$((LOOP+1))