Skip to content

Commit

Permalink
silence ssid-changer if going offline
Browse files Browse the repository at this point in the history
  • Loading branch information
maurerle committed Dec 15, 2024
1 parent 35ec27a commit 902c5de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffac-ssid-changer/shsrc/ssid-changer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 902c5de

Please sign in to comment.