Commit fc67b271 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

Fix wpa_wait

parent f12447d9
Pipeline #1895 passed with stage
in 48 seconds
[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 %}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment