projects
/
dotfiles.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add script of wifif config for raspberry pi
[dotfiles.git]
/
bin
/
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
sleep 1
13
14
# start dhcp
15
dhcpcd
16
17
sleep 3
18
19
# scan wifi
20
wpa_cli -i wlan0 scan