Add support for Powerbeam M2 XW
Signed-off-by: Christian Dresel <fff@chrisi01.de> Reviewed-by: Tobias Klaus <tk+ff@meskal.net> Reviewed-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
This commit is contained in:
parent
8857560cb4
commit
68314ea943
|
@ -0,0 +1,33 @@
|
||||||
|
WANDEV=eth0
|
||||||
|
SWITCHDEV=eth0
|
||||||
|
CLIENT_PORTS=""
|
||||||
|
WAN_PORTS=""
|
||||||
|
BATMAN_PORTS=""
|
||||||
|
|
||||||
|
. /etc/network.mode
|
||||||
|
|
||||||
|
CLIENTIF="w2ap"
|
||||||
|
ETHMESHMAC=
|
||||||
|
ROUTERMAC=w2mesh
|
||||||
|
|
||||||
|
uci set network.$SWITCHDEV=interface
|
||||||
|
uci set network.$SWITCHDEV.ifname=$SWITCHDEV
|
||||||
|
uci set network.mesh.ifname="bat0"
|
||||||
|
uci set network.eth0.mtu="1500"
|
||||||
|
|
||||||
|
|
||||||
|
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"
|
||||||
|
fi
|
|
@ -12,6 +12,8 @@ board_prebuild() {
|
||||||
board_postbuild() {
|
board_postbuild() {
|
||||||
cp $target/bin/ar71xx/openwrt-ar71xx-generic-ubnt-nano-m-squashfs-*.bin ./bin/
|
cp $target/bin/ar71xx/openwrt-ar71xx-generic-ubnt-nano-m-squashfs-*.bin ./bin/
|
||||||
|
|
||||||
|
cp $target/bin/ar71xx/openwrt-ar71xx-generic-ubnt-loco-m-xw-squashfs-*.bin ./bin/
|
||||||
|
|
||||||
cp $target/bin/ar71xx/openwrt-ar71xx-generic-tl-wr740n-v4-squashfs-*.bin ./bin/
|
cp $target/bin/ar71xx/openwrt-ar71xx-generic-tl-wr740n-v4-squashfs-*.bin ./bin/
|
||||||
|
|
||||||
cp $target/bin/ar71xx/openwrt-ar71xx-generic-tl-wr741nd-v2-squashfs-*.bin ./bin/
|
cp $target/bin/ar71xx/openwrt-ar71xx-generic-tl-wr741nd-v2-squashfs-*.bin ./bin/
|
||||||
|
|
|
@ -26,6 +26,9 @@ case "$BOARD" in
|
||||||
nanostation-m)
|
nanostation-m)
|
||||||
BOARD=ubnt-nano-m
|
BOARD=ubnt-nano-m
|
||||||
;;
|
;;
|
||||||
|
loco-m-xw)
|
||||||
|
BOARD=ubnt-loco-m-xw
|
||||||
|
;;
|
||||||
tl-wa850re)
|
tl-wa850re)
|
||||||
BOARD=tl-wa850re-v1
|
BOARD=tl-wa850re-v1
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue