openwrt/package/base-files/files/lib/functions
Jan-Niklas Burfeind c7d3bbb909 sunxi: ensure NanoPi R1 has unique MAC address
Ensure the MAC address for all NanoPi R1 boards is assigned uniquely for
each board.

The vendor ships the device in two variants; one with and one without
eMMC; but both without static mac-addresses.
In order to assign both board types unique MAC addresses, fall back on
the same method used for the NanoPi R2S and R4S in case the EEPROM
chip is not present by generating the board MAC from the SD card CID.

[0] https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R1#Hardware_Spec

Similar too and based on:

commit b5675f500d ("rockchip: ensure NanoPi R4S has unique MAC address")

Co-authored-by: David Bauer <mail@david-bauer.net>
Signed-off-by: Jan-Niklas Burfeind <git@aiyionpri.me>
2022-12-25 02:27:55 +01:00
..
caldata.sh base-files: add minimal mmc support 2021-11-01 00:56:51 +01:00
leds.sh treewide: drop shebang from non-executable lib files 2021-01-29 14:29:41 +01:00
migrations.sh treewide: drop shebang from non-executable lib files 2021-01-29 14:29:41 +01:00
network.sh base-files: fix comment typo in lib/functions/network.sh 2020-09-02 01:11:17 +02:00
preinit.sh treewide: drop shebang from non-executable lib files 2021-01-29 14:29:41 +01:00
service.sh base-files: remove function service_kill 2014-06-02 12:43:10 +00:00
system.sh sunxi: ensure NanoPi R1 has unique MAC address 2022-12-25 02:27:55 +01:00
uci-defaults.sh base-files: add helper functions for adding wlan device entries to board.json 2022-10-14 13:12:30 +02:00