Skip to content

base-files: Set hostname based on board and mac

Andreas Gnau requested to merge agnau-set-hostname into devel

To be merged after 7.4.0 is released

Using non-vendor part of board-name and "label" / "base" MAC address create a hostname and set it as system hostname and dhcp hostname for network.wan.

For example with a board_name (1st string in /compatible in dtb) of foo,model-1234 and MAC address de:ad:be:ef:12:34 will get a hostname of model-1234-deadbeef1234.

Signed-off-by: Andreas Gnau andreas.gnau@iopsys.eu

Edited by Andreas Gnau

Merge request reports