ramips: cr660x: fix network settings (#7565)

This commit is contained in:
AmadeusGhost 2021-07-31 12:21:02 +08:00 committed by GitHub
parent 4925397922
commit 27cbdc106d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,7 +88,6 @@ ramips_setup_interfaces()
xiaomi,mi-router-cr660x)
ucidef_add_switch "switch0" \
"0:lan:1" "1:lan:2" "2:lan:3" "4:wan" "6@eth0"
ucidef_set_interface_lan "eth0.1"
;;
zyxel,nr7101)
ucidef_set_interfaces_lan_wan "lan" "wan"
@ -191,6 +190,10 @@ ramips_setup_macs()
wan_mac=$label_mac
lan_mac=$(macaddr_add $label_mac 1)
;;
xiaomi,mi-router-cr660x)
lan_mac=$(cat /sys/class/net/eth0/address)
wan_mac=$(mtd_get_mac_binary factory 0x3fffa)
;;
xiaoyu,xy-c5)
wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x4)" 1)
;;