[PATCH v2] Added Support for TP-Link MR3020

Tim Niemeyer tim at tn-x.org
Mo Apr 4 18:44:53 CEST 2016


Moin

Am Samstag, den 02.04.2016, 19:19 +0200 schrieb Jan Kraus:
> Signed-off-by: Jan Kraus <mayosemmel at gmail.com>
Reviewed-by: Tim Niemeyer <tim at tn-x.org>

Mit dem applien warte ich mal auf dem custom names Patchset.

Tim

> ---
>  bsp/ar71xx/root_file_system/etc/network.tl-mr3020 | 32 +++++++++++++++++++++++
>  bsp/board_ar71xx.bsp                              |  1 +
>  2 files changed, 33 insertions(+)
>  create mode 100644 bsp/ar71xx/root_file_system/etc/network.tl-mr3020
> 
> diff --git a/bsp/ar71xx/root_file_system/etc/network.tl-mr3020 b/bsp/ar71xx/root_file_system/etc/network.tl-mr3020
> new file mode 100644
> index 0000000..e2150d0
> --- /dev/null
> +++ b/bsp/ar71xx/root_file_system/etc/network.tl-mr3020
> @@ -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
> diff --git a/bsp/board_ar71xx.bsp b/bsp/board_ar71xx.bsp
> index 1834d16..900c591 100644
> --- a/bsp/board_ar71xx.bsp
> +++ b/bsp/board_ar71xx.bsp
> @@ -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() {
> -- 
> 2.1.4
> 

-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : signature.asc
Dateityp    : application/pgp-signature
Dateigröße  : 473 bytes
Beschreibung: This is a digitally signed message part
URL         : <http://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20160404/d0a447bb/attachment-0002.sig>


Mehr Informationen über die Mailingliste franken-dev