mesh script

This commit is contained in:
Mattias Walström
2026-06-03 11:16:11 +02:00
parent 8447a6be4e
commit 607ce10574
2 changed files with 25 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
# mesh-action.sh - wpa_cli action script for 802.11s mesh
# Called by wpa_cli with: $1="<iface> <EVENT ...>"
IFACE="${1%% *}"
EVENT="${1#* }"
case "$EVENT" in
MESH-GROUP-STARTED*)
if [ -f "/run/mesh-params-${IFACE}.conf" ]; then
. "/run/mesh-params-${IFACE}.conf"
fi
;;
esac
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
IFACE="$1"
CTRL="/run/wpa_supplicant/$IFACE"
i=0
while [ $i -lt 10 ] && [ ! -S "$CTRL" ]; do
sleep 1
i=$((i + 1))
done
[ -S "$CTRL" ] && wpa_cli -i "$IFACE" -a /usr/libexec/mesh-action.sh -B