openwrt/package/base-files/files/lib/functions
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
..
caldata.sh treewide: use a single ath10k MAC patching function with checksum 2019-10-15 18:13:54 +02:00
leds.sh base-files: get_dt_led: don't warn about missing led 2018-04-04 09:12:39 +02:00
migrations.sh base-files: add leds migration 2019-04-06 19:14:05 +02:00
network.sh base-files: add network_get_uptime() to /lib/functions/network.sh 2019-06-29 21:00:58 +02:00
preinit.sh base-files: fix ramoverlay function with kernels 3.18+ 2015-09-21 17:41:07 +00:00
service.sh
system.sh base-files: rename hostname with EUI of mac address 2019-11-07 17:13:18 +01:00
uci-defaults.sh base-files: uci-defaults: do config flush in one shot 2019-10-22 11:39:28 +02:00