projects
/
networtool-web.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix bug
[networtool-web.git]
/
script
/
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