aboutsummaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2017-12-14 17:07:31 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2017-12-14 17:07:31 -0600
commit50b69d564a8f89b8137bb6d9d53aac1e44f6c23c (patch)
tree6c0cbd2cc749903788053e063106e1de0bad7679 /init.d
parenteb18f4f3483b99705f944c7274b4a6b451716df7 (diff)
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.
Diffstat (limited to 'init.d')
-rw-r--r--init.d/hostname.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/init.d/hostname.in b/init.d/hostname.in
index d7913bed..823008fd 100644
--- a/init.d/hostname.in
+++ b/init.d/hostname.in
@@ -20,9 +20,9 @@ depend()
start()
{
local h source x
- if [ -s @SYSCONFDIR@/hostname ] && [ -r @SYSCONFDIR@/hostname ]; then
- read h x <@SYSCONFDIR@/hostname
- source="from @SYSCONFDIR@/hostname"
+ if [ -s /etc/hostname ] && [ -r /etc/hostname ]; then
+ read h x </etc/hostname
+ source="from /etc/hostname"
else
# HOSTNAME variable used to be defined in caps in conf.d/hostname.
# It is also a magic variable in bash.