mtu for mesh hotspot

This commit is contained in:
Bob Mottram 2016-10-06 22:42:29 +01:00
parent de008e4f99
commit 6a665c5995
1 changed files with 4 additions and 1 deletions

View File

@ -273,6 +273,9 @@ function start {
# bridge between mesh and wifi hotspot for mobile
HOTSPOT_NAME=$"${WIFI_SSID}-hotspot"
ifconfig $IFACE_SECONDARY down
ifconfig $IFACE_SECONDARY mtu 1500
ifconfig $IFACE_SECONDARY hw ether $(assign_peer_address)
iwconfig $IFACE_SECONDARY enc open
iwconfig $IFACE_SECONDARY mode managed essid $HOTSPOT_NAME channel ${CHANNEL}
iwconfig $IFACE_SECONDARY ap $CELLID
@ -302,7 +305,7 @@ function start {
ifconfig $BRIDGE_HOTSPOT up
avahi-autoipd --force-bind --daemonize --wait $BRIDGE_HOTSPOT
ifconfig $IFACE_SECONDARY up promisc
ifconfig $IFACE_SECONDARY auto-dhcp
ifconfig $IFACE_SECONDARY auto-dhcp start
fi
fi
fi