From 299c16ca41ea84617de8d4835c62d08133029044 Mon Sep 17 00:00:00 2001 From: Marc Hillesheim Date: Sun, 3 Mar 2019 13:41:24 +0100 Subject: [PATCH] [script] Fix #306 wifi client connect --- .../03-crankshaft-base/files/etc/dnsmasq.conf | 19 ++----------------- .../files/opt/crankshaft/service_hotspot.sh | 2 +- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/stage3/03-crankshaft-base/files/etc/dnsmasq.conf b/stage3/03-crankshaft-base/files/etc/dnsmasq.conf index cbce61cd..c52018f2 100644 --- a/stage3/03-crankshaft-base/files/etc/dnsmasq.conf +++ b/stage3/03-crankshaft-base/files/etc/dnsmasq.conf @@ -18,31 +18,16 @@ dhcp-authoritative dhcp-leasefile=/tmp/dnsmasq.leases # subnet mask -dhcp-option=1,255.255.255.248 +dhcp-option=1,255.255.255.240 # dns dhcp-option=6, 8.8.8.8, 8.8.4.4 -# static route for client -dhcp-option=33,192.168.254.0/29, 192.168.254.1 - # ip forward (yes) dhcp-option=19,1 -# source routing -dhcp-option=20,0 - -# broadcast addr -dhcp-option=28,192.168.254.7 - -# net bios -dhcp-option=44,0.0.0.7 -dhcp-option=45,0.0.0.7 -dhcp-option=46,8 -dhcp-option=47 - # dynamic DHCP range with a 2 hour lease -dhcp-range=192.168.254.2,192.168.254.6,2h +dhcp-range=192.168.254.2,192.168.254.14,2h # logging #log-queries diff --git a/stage3/03-crankshaft-base/files/opt/crankshaft/service_hotspot.sh b/stage3/03-crankshaft-base/files/opt/crankshaft/service_hotspot.sh index b187d8b0..e92b6ef0 100755 --- a/stage3/03-crankshaft-base/files/opt/crankshaft/service_hotspot.sh +++ b/stage3/03-crankshaft-base/files/opt/crankshaft/service_hotspot.sh @@ -25,7 +25,7 @@ if [ $ENABLE_HOTSPOT -eq 1 ] || [ -f /tmp/manual_hotspot_control ]; then log_echo "Configure ip for wlan0" echo "[${CYAN}${BOLD} INFO ${RESET}] Configure interface ip" > /dev/tty3 # 5 client ip's available (sum 6) - sudo ifconfig wlan0 192.168.254.1 netmask 255.255.255.248 broadcast 192.168.254.7 + sudo ifconfig wlan0 192.168.254.1 netmask 255.255.255.240 broadcast 192.168.254.15 #switch power management log_echo "Switch on wlan0" # delete existing rules