projects
/
networtool-web.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
5beb98f61e83f4a080e0a01d8921dad68bf2b98f
[networtool-web.git]
/
stopHostapd.sh
1
#!/bin/bash -xe
2
3
# stop hostapd
4
systemctl stop hostapd || true
5
6
# stop dns server
7
killall dnsmasq || true
8
9
# stop dhcp client
10
killall dhcpcd || true
11
12
ip addr flush dev wlan0
13
14
sleep 1
15
16
# start dhcp
17
dhcpcd
18
19
sleep 3
20
21
# scan wifi
22
wpa_cli -i wlan0 scan