diff --git a/bsp/ar71xx/root_file_system/etc/network.ubnt-bullet-m b/bsp/ar71xx/root_file_system/etc/network.ubnt-bullet-m new file mode 100644 index 00000000..1e9223f7 --- /dev/null +++ b/bsp/ar71xx/root_file_system/etc/network.ubnt-bullet-m @@ -0,0 +1,31 @@ +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" + +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 diff --git a/bsp/board_ar71xx.bsp b/bsp/board_ar71xx.bsp index 900c5912..933fa769 100644 --- a/bsp/board_ar71xx.bsp +++ b/bsp/board_ar71xx.bsp @@ -18,6 +18,7 @@ images=("openwrt-ar71xx-generic-ubnt-nano-m-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" + "openwrt-ar71xx-generic-ubnt-bullet-m-squashfs-sysupgrade.bin" ) board_prepare() { diff --git a/bsp/default/root_file_system/etc/rc.local.tpl b/bsp/default/root_file_system/etc/rc.local.tpl index 91422d59..73f07090 100755 --- a/bsp/default/root_file_system/etc/rc.local.tpl +++ b/bsp/default/root_file_system/etc/rc.local.tpl @@ -26,6 +26,9 @@ case "$BOARD" in nanostation-m) BOARD=ubnt-nano-m ;; + bullet-m) + BOARD=ubnt-bullet-m + ;; loco-m-xw) BOARD=ubnt-loco-m-xw ;;