openwrt/package/base-files/files/lib
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
..
functions base-files: rework mtd_get_mac_text() 2023-01-06 15:34:07 +01:00
preinit base-files: rename ethernet devs on known boards 2022-09-10 21:16:20 +02:00
upgrade base-files: stage2: add 'tail' to sysupgrade environment 2022-12-31 05:02:38 -08:00
functions.sh base-files: simplify restorecon logic 2022-05-02 21:11:05 +01:00