Index: scripts/wifi_start_wpa_supplicant.sh =================================================================== diff -u -rc9f8f8cf3c6c37fc6460d8675c62c9442c4d4263 -rc1661ddfbd78f22da272b54b36ad377393f1f7ae --- scripts/wifi_start_wpa_supplicant.sh (.../wifi_start_wpa_supplicant.sh) (revision c9f8f8cf3c6c37fc6460d8675c62c9442c4d4263) +++ scripts/wifi_start_wpa_supplicant.sh (.../wifi_start_wpa_supplicant.sh) (revision c1661ddfbd78f22da272b54b36ad377393f1f7ae) @@ -23,8 +23,9 @@ iface=$1 wpa_supplicant_path=$2 -wpa_cli terminate -killall udhcpc -killall wpa_supplicant -sleep 1 -wpa_supplicant -B -i $iface -c $wpa_supplicant_path wext + +# make sure hardware is up +ip link set $iface up + +# restart the wpa_supplicant service for wifi +systemctl restart wpa_supplicant@"$iface".service