1 |
William Hubbs <williamh@g.o> wrote: |
2 |
> |
3 |
> I am planning to change the logic in /etc/init.d/hostname so that if |
4 |
> /etc/hostname exists, the first word out of that file will be used as |
5 |
> the hostname rather than any setting in /etc/conf.d/hostname. |
6 |
|
7 |
You could also make the content of the default /etc/conf.d/hostname: |
8 |
|
9 |
hostname=`cat /etc/hostname` |
10 |
|
11 |
or |
12 |
|
13 |
read hostname </etc/hostname |
14 |
|
15 |
or something similar. This way, the change becomes transparent to the user |
16 |
and he can easily change it if he prefers the old logic for some reason. |