On Tue, Aug 23, 2016 at 2:39 AM, Daniel Campbell <z...@gentoo.org> wrote: > > It makes a bit more sense to rely on previous configuration > (/etc/conf.d/hostname) and write a tiny 'script' that populates > /etc/hostname. bash could do it (naively) in two lines: > > source /etc/conf.d/hostname > echo "$hostname" > /etc/hostname >
Seems to me that symlinking /proc/sys/kernel/hostname would be simpler. Also, more reliable, because there are other ways the hostname could be set other than from /etc/conf.d/hostname. The hostname can also change. -- Rich