Skip to content
Snippets Groups Projects
Commit fc67b271 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

Fix wpa_wait

parent f12447d9
No related branches found
No related tags found
No related merge requests found
Pipeline #1895 passed
[Service]
ExecStartPre=/usr/local/bin/wpa_wait.sh
ExecStartPre=+/usr/local/bin/wpa_wait.sh
#!/bin/bash
#!/bin/sh
{% if radius_client_wait %}
journalctl -u wpa_supplicant-wired@{{ ansible_default_ipv4.interface }} -b | tail -n1 | grep CONNECTED
while [ $? == 1 ]; do
journalctl -u wpa_supplicant-wired@{{ ansible_default_ipv4.interface }} -b | tail -n1 | grep CONNECTED
while ! wpa_cli -i {{ ansible_default_ipv4.interface }} status | grep -q "wpa_state=COMPLETED"; do
sleep 1
done
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment