diff --git a/src/freedombone-mesh-batman b/src/freedombone-mesh-batman index 3e74893467c0bf79ef9a53303862c10aa838aece..43627e192de87d51c0604745f1aca151b05b16ed 100755 --- a/src/freedombone-mesh-batman +++ b/src/freedombone-mesh-batman @@ -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