diff options
author | Luka Pivk <luka.pivk@toradex.com> | 2020-03-06 16:01:52 +0100 |
---|---|---|
committer | Luka Pivk <luka.pivk@toradex.com> | 2020-03-19 10:36:04 +0100 |
commit | 523aea31bb7a705860f488f3431dc20745c31c48 (patch) | |
tree | cfe5e1f6550b2a732ff6311692fd6bf0d5871a2b /classes | |
parent | aaf2b59a0bd69c1cfea6d2fc0df30ab49e16e031 (diff) |
hostname: generate a uniqe hostname on boot
This will generate a hostname based on machine name and serial number.
(E.g. colibri-imx7-031111777)
If serial number is not found it will say "no-serial-number" in host
name.
If machine is not supported hostname will include "unsupported-device"
string.
If /dev/device-tree does not exist it will say "recovery-mode"
as it assumes its in recovery mode of Toradex Easy Installer
To prevent openembedded from creating /etc/hostname file
add hostname_pn-base-files = "" to configration
Related-to: TEI-100, ELB-1322
Signed-off-by: Luka Pivk <luka.pivk@toradex.com>
Diffstat (limited to 'classes')
0 files changed, 0 insertions, 0 deletions