You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
5 years ago
..
caldata.sh treewide: use a single ath10k MAC patching function with checksum 5 years ago
leds.sh base-files: get_dt_led: don't warn about missing led 6 years ago
migrations.sh base-files: add leds migration 5 years ago
network.sh base-files: add network_get_uptime() to /lib/functions/network.sh 5 years ago
preinit.sh base-files: fix ramoverlay function with kernels 3.18+ 9 years ago
service.sh base-files: remove function service_kill 10 years ago
system.sh base-files: rename hostname with EUI of mac address 5 years ago
uci-defaults.sh base-files: uci-defaults: do config flush in one shot 5 years ago