hostname: replace @SYSCONFDIR@ references with /etc
I do not know of any situation where /etc/hostname is at any other location. Also, this does not run on prefix.
This commit is contained in:
parent
eb18f4f348
commit
50b69d564a
@ -20,9 +20,9 @@ depend()
|
|||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
local h source x
|
local h source x
|
||||||
if [ -s @SYSCONFDIR@/hostname ] && [ -r @SYSCONFDIR@/hostname ]; then
|
if [ -s /etc/hostname ] && [ -r /etc/hostname ]; then
|
||||||
read h x <@SYSCONFDIR@/hostname
|
read h x </etc/hostname
|
||||||
source="from @SYSCONFDIR@/hostname"
|
source="from /etc/hostname"
|
||||||
else
|
else
|
||||||
# HOSTNAME variable used to be defined in caps in conf.d/hostname.
|
# HOSTNAME variable used to be defined in caps in conf.d/hostname.
|
||||||
# It is also a magic variable in bash.
|
# It is also a magic variable in bash.
|
||||||
|
Loading…
Reference in New Issue
Block a user