OSDN Git Service

Merge Offcial Source
[immortalwrt/immortalwrt.git] / target / linux / ipq40xx / base-files / etc / board.d / 02_network
index 2aa4886..bda2d8f 100644 (file)
@@ -216,6 +216,11 @@ ipq40xx_setup_macs()
                lan_mac=$(cat /sys/firmware/mikrotik/hard_config/mac_base)
                label_mac="$lan_mac"
                ;;
+       p2w,r619ac|\
+       p2w,r619ac-128m)
+               wan_mac=$(cat /sys/class/net/eth0/address)
+               lan_mac=$(macaddr_add "$wan_mac" 1)
+               ;;
        esac
 
        [ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac