From 50b69d564a8f89b8137bb6d9d53aac1e44f6c23c Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Thu, 14 Dec 2017 17:07:31 -0600 Subject: [PATCH] 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. --- init.d/hostname.in | 6 +++--- 1 file 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