Added automatic config script

This commit is contained in:
2021-04-10 02:24:55 +03:00
parent 2bd808ece7
commit f5911072c4
3 changed files with 24 additions and 0 deletions

7
dnsmasq.conf Normal file
View File

@@ -0,0 +1,7 @@
interface=wlan0
dhcp-range=192.168.2.2,192.168.2.30,255.255.255.0,6h
address=/#/192.168.2.1
server=8.8.8.8
log-queries
log-dhcp
#listen-address=127.0.0.1

10
honey.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
ip link set wlan0 up
ip address add 192.168.2.1/24 broadcast + dev wlan0
dnsmasq -C /home/alarm/dnsmasq.conf -d -R &
hostapd /home/alarm/hostapd.conf &
#source /home/alarm/vkflask/venv/bin/activate
#python /home/alarm/vkflask/app.py

7
hostapd.conf Normal file
View File

@@ -0,0 +1,7 @@
interface=wlan0
driver=nl80211
#country_code=
ssid=access_point
channel=1
hw_mode=g
macaddr_acl=0