1 |
On Tue, Aug 23, 2016 at 2:39 AM, Daniel Campbell <zlg@g.o> wrote: |
2 |
> |
3 |
> It makes a bit more sense to rely on previous configuration |
4 |
> (/etc/conf.d/hostname) and write a tiny 'script' that populates |
5 |
> /etc/hostname. bash could do it (naively) in two lines: |
6 |
> |
7 |
> source /etc/conf.d/hostname |
8 |
> echo "$hostname" > /etc/hostname |
9 |
> |
10 |
|
11 |
Seems to me that symlinking /proc/sys/kernel/hostname would be |
12 |
simpler. Also, more reliable, because there are other ways the |
13 |
hostname could be set other than from /etc/conf.d/hostname. The |
14 |
hostname can also change. |
15 |
|
16 |
-- |
17 |
Rich |