mtu for mesh hotspot
This commit is contained in:
parent
de008e4f99
commit
6a665c5995
|
@ -273,6 +273,9 @@ function start {
|
||||||
# bridge between mesh and wifi hotspot for mobile
|
# bridge between mesh and wifi hotspot for mobile
|
||||||
HOTSPOT_NAME=$"${WIFI_SSID}-hotspot"
|
HOTSPOT_NAME=$"${WIFI_SSID}-hotspot"
|
||||||
ifconfig $IFACE_SECONDARY down
|
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 mode managed essid $HOTSPOT_NAME channel ${CHANNEL}
|
||||||
iwconfig $IFACE_SECONDARY ap $CELLID
|
iwconfig $IFACE_SECONDARY ap $CELLID
|
||||||
|
|
||||||
|
@ -302,7 +305,7 @@ function start {
|
||||||
ifconfig $BRIDGE_HOTSPOT up
|
ifconfig $BRIDGE_HOTSPOT up
|
||||||
avahi-autoipd --force-bind --daemonize --wait $BRIDGE_HOTSPOT
|
avahi-autoipd --force-bind --daemonize --wait $BRIDGE_HOTSPOT
|
||||||
ifconfig $IFACE_SECONDARY up promisc
|
ifconfig $IFACE_SECONDARY up promisc
|
||||||
ifconfig $IFACE_SECONDARY auto-dhcp
|
ifconfig $IFACE_SECONDARY auto-dhcp start
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue