openwrt/package/base-files/files/lib
Rosy Song 6170c46b47 base-files: rename hostname with EUI of mac address
If a label MAC address is provided for device, system
will rename the hostname with OpenWrt_{eui mac address}.
This helps to distinguish between different devices.

Since it's no good idea to nest json_* functions, this code does
not use get_mac_label directly, but only get_mac_label_dt as
external resource.

Signed-off-by: Rosy Song <rosysong@rosinson.com>
[merged with commit introducing macaddr_geteui, rebased on updated
label MAC address storage, extended commit message]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2019-11-07 17:13:18 +01:00
..
functions base-files: rename hostname with EUI of mac address 2019-11-07 17:13:18 +01:00
preinit base-files: move urandom seed bits into separate package 2019-06-11 08:06:28 +02:00
upgrade base-files: upgrade: add case to export_bootdevice 2019-10-09 21:00:02 +02:00
functions.sh base-files: move xor() from caldata extraction to functions.sh 2019-10-13 19:03:57 +02:00