skeleton-init-common: improve /etc/hosts generation
authorCarlos Santos <casantos@datacom.com.br>
Fri, 19 Oct 2018 13:58:24 +0000 (10:58 -0300)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Mon, 28 Jan 2019 23:12:00 +0000 (00:12 +0100)
commit01aacbf942198f919ce878d257edc6a47e756e45
tree19bcbf97519b6a203f080b400221a621781d7d9e
parenta7d07b5852eb69ad4cd810999d5fa9edec5326ba
skeleton-init-common: improve /etc/hosts generation

If BR2_TARGET_GENERIC_HOSTNAME contains a FQDN, strip the host part and
add it as an alias, e.g.

    127.0.1.1 hostname.example.com hostname

Signed-off-by: Carlos Santos <casantos@datacom.com.br>
Reviewed-by: Matt Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/skeleton-init-common/skeleton-init-common.mk