Removed ETH and added GATEWAY to config
parent
8d3de795e5
commit
b4e893c030
|
@ -1,10 +1,8 @@
|
|||
# Please input the good wlan device (most of the time it is wlan0 or wlan1)
|
||||
# Please input the wlan device to be used (most of the time it is wlan0 or wlan1)
|
||||
WLAN=wlan0
|
||||
|
||||
# The ETH device should be connected to the internet but it should also work if it is a local network only
|
||||
ETH=eth0
|
||||
|
||||
# Here you could change the WIFI-name and password but most likely most scripts won't work after
|
||||
# Because the WIFI-credentials are hardcoded in the esp8266-ota-flash-convert
|
||||
AP=vtrust-flash
|
||||
PASS=flashmeifyoucan
|
||||
GATEWAY=10.42.42.1
|
||||
|
|
|
@ -43,7 +43,7 @@ EOF
|
|||
|
||||
echo "Configuring AP interface..."
|
||||
sudo ifconfig $WLAN down
|
||||
sudo ifconfig $WLAN up 10.42.42.1 netmask 255.255.255.0
|
||||
sudo ifconfig $WLAN up $GATEWAY netmask 255.255.255.0
|
||||
sudo ip route add 255.255.255.255 dev $WLAN
|
||||
|
||||
echo "Starting DNSMASQ server..."
|
||||
|
@ -51,9 +51,9 @@ sudo dnsmasq \
|
|||
--no-resolv \
|
||||
--interface=$WLAN \
|
||||
--bind-interfaces \
|
||||
--listen-address=10.42.42.1 \
|
||||
--listen-address=$GATEWAY \
|
||||
--dhcp-range=10.42.42.10,10.42.42.40,12h \
|
||||
--address=/#/10.42.42.1
|
||||
--address=/#/$GATEWAY
|
||||
|
||||
echo "Starting AP on $WLAN..."
|
||||
sudo hostapd hostapd.conf
|
||||
|
|
Loading…
Reference in New Issue