We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0918f5 commit 2710848Copy full SHA for 2710848
feeds/ipq807x_v5.4/ipq50xx/base-files/etc/board.d/02_network
@@ -121,10 +121,13 @@ qcom_setup_macs()
121
lan_mac=$(macaddr_add "$wan_mac" 2)
122
;;
123
sonicfi,rap630e)
124
- mac=$(fw_printenv -n BaseMacAddress)
+ mtd=$(find_mtd_chardev "0:APPSBLENV")
125
+ [ -z "$mtd" ] && return;
126
+ mac=$(grep BaseMacAddress= $mtd | cut -d '=' -f2)
127
+
128
[ -z "$mac" ] && return;
- lan_mac=$(macaddr_canonicalize $mac)
- wan_mac=$(macaddr_add "$wan_mac" 1)
129
+ wan_mac=$(macaddr_canonicalize $mac)
130
+ lan_mac=$(macaddr_add "$wan_mac" 1)
131
ucidef_set_network_device_mac eth1 $wan_mac
132
ucidef_set_network_device_mac eth0 $lan_mac
133
ip link set eth1 address $wan_mac
0 commit comments