commit: 50b69d564a8f89b8137bb6d9d53aac1e44f6c23c
Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Thu Dec 14 23:07:31 2017 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu Dec 14 23:07:31 2017 +0000
URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=50b69d56
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 </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.