Skip to content

Commit

Permalink
[script] Fix #306 wifi client connect
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeyexp committed Mar 3, 2019
1 parent 2f44c46 commit 299c16c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
19 changes: 2 additions & 17 deletions stage3/03-crankshaft-base/files/etc/dnsmasq.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 299c16c

Please sign in to comment.