ramips: basic support for Planex MZK-750DHP
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / uci-defaults / 02_network
index 472ae588d5b564b2393b117b419038dd0b6e9c4f..b54b55532698951162d2fa4f02117c39a5a8980d 100755 (executable)
@@ -97,7 +97,8 @@ ramips_setup_interfaces()
        dir-320-b1 | \
        dir-615-h1 | \
        hlk-rm04 | \
-       mzk-w300nh2)
+       mzk-w300nh2 | \
+       mzk-750dhp)
                ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
                ucidef_add_switch "switch0" "1" "1"
                ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 6t"
@@ -258,6 +259,7 @@ ramips_setup_macs()
                ;;
 
        *)
+               lan_mac=$(cat /sys/class/net/eth0/address)
                wan_mac=$(macaddr_add "$lan_mac" 1)
                ;;