diff options
author | Sungbo Eo <mans0n@gorani.run> | 2020-04-25 17:36:55 +0900 |
---|---|---|
committer | Chuanhong Guo <gch981213@gmail.com> | 2020-05-19 19:03:07 +0800 |
commit | 31697f92a25f8a6700978eedc658cadaacd2e5f2 (patch) | |
tree | e85aacb47394bce332e808480d6377ec49368db6 | |
parent | f7112a180f3655c56fb2c31eff286ee98983ca45 (diff) | |
download | upstream-31697f92a25f8a6700978eedc658cadaacd2e5f2.tar.gz upstream-31697f92a25f8a6700978eedc658cadaacd2e5f2.tar.bz2 upstream-31697f92a25f8a6700978eedc658cadaacd2e5f2.zip |
ramips: fix MAC address setup for RT5350F-OLinuXino devices
Olimex RT5350F-OLinuXino devices do not have a default MAC address, and there is
nothing at the 0x4 offset in the factory partition. Using a local address, which
is randomly generated by the kernel, would be a better choice.
Signed-off-by: Sungbo Eo <mans0n@gorani.run>
-rwxr-xr-x | target/linux/ramips/rt305x/base-files/etc/board.d/02_network | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ramips/rt305x/base-files/etc/board.d/02_network b/target/linux/ramips/rt305x/base-files/etc/board.d/02_network index ae456077fa..f34ade8f68 100755 --- a/target/linux/ramips/rt305x/base-files/etc/board.d/02_network +++ b/target/linux/ramips/rt305x/base-files/etc/board.d/02_network @@ -217,8 +217,6 @@ ramips_setup_macs() nexx,wt1520-8m|\ nixcore,x1-16m|\ nixcore,x1-8m|\ - olimex,rt5350f-olinuxino|\ - olimex,rt5350f-olinuxino-evb|\ omnima,miniembplug|\ planex,mzk-w300nh2|\ sitecom,wl-351|\ @@ -241,6 +239,8 @@ ramips_setup_macs() huawei,d105|\ hilink,hlk-rm04|\ nexaira,bc2|\ + olimex,rt5350f-olinuxino|\ + olimex,rt5350f-olinuxino-evb|\ petatel,psr-680w|\ skyline,sl-r7205) lan_mac=$(macaddr_setbit_la "$(cat /sys/class/net/eth0/address)") |