William Hubbs <willi...@gentoo.org> wrote: > > I am planning to change the logic in /etc/init.d/hostname so that if > /etc/hostname exists, the first word out of that file will be used as > the hostname rather than any setting in /etc/conf.d/hostname.
You could also make the content of the default /etc/conf.d/hostname: hostname=`cat /etc/hostname` or read hostname </etc/hostname or something similar. This way, the change becomes transparent to the user and he can easily change it if he prefers the old logic for some reason.