@@ -2,4 +2,5 @@ machine=mt76x8
chipset=ramips
subtarget=mt76x8
images=("openwrt-${chipset}-${subtarget}-tplink_c50-v3-squashfs-sysupgrade.bin"
+ "openwrt-${chipset}-${subtarget}-tl-wr841n-v13-squashfs-sysupgrade.bin"
)
@@ -6,6 +6,8 @@ CONFIG_TARGET_ramips_mt76x8=y
CONFIG_TARGET_MULTI_PROFILE=y
CONFIG_TARGET_DEVICE_ramips_mt76x8_DEVICE_tplink_c50-v3=y
CONFIG_TARGET_DEVICE_PACKAGES_ramips_mt76x8_DEVICE_tplink_c50-v3=""
+CONFIG_TARGET_DEVICE_ramips_mt76x8_DEVICE_tl-wr841n-v13=y
+CONFIG_TARGET_DEVICE_PACKAGES_ramips_mt76x8_DEVICE_tl-wr841n-v13=""
CONFIG_BUSYBOX_CUSTOM=y
CONFIG_TARGET_PER_DEVICE_ROOTFS=y
# CONFIG_BUSYBOX_CONFIG_BRCTL is not set
new file mode 100644
@@ -0,0 +1,12 @@
+. /lib/functions/system.sh
+
+PORTORDER="0 1 2 3 4"
+
+WANDEV=eth0
+SWITCHDEV=eth0
+CLIENT_PORTS="6t 3 4"
+WAN_PORTS="6t 0"
+BATMAN_PORTS="6t 1 2"
+
+ROUTERMAC=$(cat /sys/class/net/eth0/address)
+ETHMESHMAC=$(macaddr_setbit_la "$ROUTERMAC")