Index: scripts/wifi_disconnect_network.sh =================================================================== diff -u -r8acba391c1ea0e58c3e61c3d9e956f1edd1bc901 -r3e7cdf9b112dc6e865323e8381cecfd5d988a927 --- scripts/wifi_disconnect_network.sh (.../wifi_disconnect_network.sh) (revision 8acba391c1ea0e58c3e61c3d9e956f1edd1bc901) +++ scripts/wifi_disconnect_network.sh (.../wifi_disconnect_network.sh) (revision 3e7cdf9b112dc6e865323e8381cecfd5d988a927) @@ -22,10 +22,14 @@ fi iface=$1 -killall wpa_supplicant -rm -f /etc/wpa_supplicant.conf -#reset interface +# stop the wpa service +systemctl stop wpa_supplicant@"$iface".service + +#remove the wpa configuration file +rm -f /etc/wpa_supplicant/wpa_supplicant-"$iface".conf + +#Shutoff wifi interface ip link set $iface down -ip link set $iface up +