Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trygveaa/b9b3d3ac2ccd85c90d0a to your computer and use it in GitHub Desktop.
Save trygveaa/b9b3d3ac2ccd85c90d0a to your computer and use it in GitHub Desktop.
[Service]
ExecStart=
ExecStart=/usr/local/bin/wpa_workaround -c/etc/wpa_supplicant/wpa_supplicant-%I.conf -i%I
Restart=always
RestartSec=0
#!/bin/sh
stdbuf -oL /usr/bin/wpa_supplicant "$@" | while read l; do
echo "$l"
if [ "$l" = "wlan0: Reject scan trigger since one is already pending" ]; then
killall wpa_supplicant
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment