X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=bin%2FstopHostapd.sh;fp=bin%2FstopHostapd.sh;h=c20b12a1ea00ab9a71be4d4c473295bee466274c;hb=85cef43f457f743edbf30fa50a877a1a9e697eed;hp=0000000000000000000000000000000000000000;hpb=6515e998b7be0db4b699d119ceaad4bfa11d405e;p=dotfiles.git diff --git a/bin/stopHostapd.sh b/bin/stopHostapd.sh new file mode 100755 index 0000000..c20b12a --- /dev/null +++ b/bin/stopHostapd.sh @@ -0,0 +1,20 @@ +#!/bin/bash -xe + +# stop hostapd +systemctl stop hostapd || true + +# stop dns server +killall dnsmasq || true + +# stop dhcp client +killall dhcpcd || true + +sleep 1 + +# start dhcp +dhcpcd + +sleep 3 + +# scan wifi +wpa_cli -i wlan0 scan