2022-08-24 18:17:29 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-09-26 17:17:27 +02:00
|
|
|
if wpa_cli status | rg -q "wpa_state=COMPLETED"; then
|
2022-09-24 13:57:01 +02:00
|
|
|
icon="直"
|
2022-09-26 17:17:27 +02:00
|
|
|
status="Connected"
|
2022-08-24 18:17:29 +02:00
|
|
|
else
|
2022-09-24 13:57:01 +02:00
|
|
|
icon="睊"
|
2022-08-24 18:17:29 +02:00
|
|
|
status="offline"
|
|
|
|
fi
|
|
|
|
|
|
|
|
printf "{\"icon\": \"${icon}\", \"status\": \"${status}\"}"
|