summaryrefslogtreecommitdiffstats
path: root/builder/modules.d/wlan-boot/debug/scripts/restart_wpa.sh
diff options
context:
space:
mode:
Diffstat (limited to 'builder/modules.d/wlan-boot/debug/scripts/restart_wpa.sh')
-rwxr-xr-xbuilder/modules.d/wlan-boot/debug/scripts/restart_wpa.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/builder/modules.d/wlan-boot/debug/scripts/restart_wpa.sh b/builder/modules.d/wlan-boot/debug/scripts/restart_wpa.sh
new file mode 100755
index 00000000..3e284772
--- /dev/null
+++ b/builder/modules.d/wlan-boot/debug/scripts/restart_wpa.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+PID=$(pgrep wpa_supplicant)
+systemctl stop wpa_supplicant
+kill -9 "$PID"
+systemctl start wpa_supplicant
+ip route add default via 10.125.1.254 dev wlan0 &>> /tmp/wlan.log