openwrt/package/base-files/files/lib/functions
Michael Pratt 1e3a8f454e base-files: rework mtd_get_mac_text()
It's necessary to be able to specify the length
for MAC addresses that are stored in flash, for example,
in a case where it is stored without any delimiter.

Let both offset and length have default values.

Add a sanity check related to partition size.

Also, clean up syntax and unnecessary lines.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
2023-01-06 15:34:07 +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 base-files: rework mtd_get_mac_text() 2023-01-06 15:34:07 +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