forked from freifunk-franken/firmware
Added Support for TP-Link MR3020
Signed-off-by: Jan Kraus <mayosemmel@gmail.com> Reviewed-by: Tim Niemeyer <tim@tn-x.org>
This commit is contained in:
parent
af80123aa2
commit
2499110673
|
@ -0,0 +1,32 @@
|
|||
WANDEV=eth0
|
||||
SWITCHDEV=eth0
|
||||
CLIENT_PORTS=""
|
||||
WAN_PORTS=""
|
||||
BATMAN_PORTS=""
|
||||
|
||||
. /etc/network.mode
|
||||
|
||||
CLIENTIF="w2ap"
|
||||
ETHMESHMAC=eth0
|
||||
ROUTERMAC=eth0
|
||||
|
||||
uci set network.$SWITCHDEV=interface
|
||||
uci set network.$SWITCHDEV.ifname=$SWITCHDEV
|
||||
uci set network.mesh.ifname="bat0"
|
||||
|
||||
if [ "$ETHMODE" = "WAN" ] ; then
|
||||
## Activate for WAN:
|
||||
echo "net.ipv6.conf.$WANDEV.accept_ra_defrtr = 1" >> /etc/sysctl.conf
|
||||
echo "net.ipv6.conf.$WANDEV.accept_ra_pinfo = 1" >> /etc/sysctl.conf
|
||||
echo "net.ipv6.conf.$WANDEV.autoconf = 1" >> /etc/sysctl.conf
|
||||
echo "net.ipv6.conf.$WANDEV.accept_ra_rtr_pref = 1" >> /etc/sysctl.conf
|
||||
uci set network.wan.ifname=$WANDEV
|
||||
elif [ "$ETHMODE" = "CLIENT" ] ; then
|
||||
## Activate Client:
|
||||
CLIENTIF="w2ap eth0"
|
||||
uci set network.mesh.ifname="bat0 $SWITCHDEV"
|
||||
else
|
||||
## Activate BATMAN:
|
||||
uci set network.ethmesh.ifname="$SWITCHDEV"
|
||||
ETH0MAC="w2ap"
|
||||
fi
|
|
@ -17,6 +17,7 @@ images=("openwrt-ar71xx-generic-ubnt-nano-m-squashfs-sysupgrade.bin"
|
|||
"openwrt-ar71xx-generic-tl-wa860re-v1-squashfs-sysupgrade.bin"
|
||||
"openwrt-ar71xx-generic-tl-wa850re-v1-squashfs-sysupgrade.bin"
|
||||
"openwrt-ar71xx-generic-gl-ar150-squashfs-sysupgrade.bin"
|
||||
"openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-sysupgrade.bin"
|
||||
)
|
||||
|
||||
board_prepare() {
|
||||
|
|
|
@ -43,6 +43,9 @@ case "$BOARD" in
|
|||
grep "4300" /var/sysinfo/model && BOARD=tl-wdr4300-v1
|
||||
grep "4310" /var/sysinfo/model && BOARD=tl-wdr4310-v1
|
||||
;;
|
||||
tl-mr3020)
|
||||
BOARD=tl-mr3020-v1
|
||||
;;
|
||||
esac
|
||||
|
||||
if ! uci get board.model.name; then
|
||||
|
|
Loading…
Reference in New Issue