From de16da348671bd797500ab144ae56d23e88c7463 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 30 Mar 2022 17:54:09 +0100 Subject: fixed initd files --- extra/openrc/hostname.initd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extra/openrc') diff --git a/extra/openrc/hostname.initd b/extra/openrc/hostname.initd index bd20874..4581595 100644 --- a/extra/openrc/hostname.initd +++ b/extra/openrc/hostname.initd @@ -8,11 +8,11 @@ depend() { start() { if [ -s /etc/hostname ] ; then - opts="-F /etc/hostname" + name=$(cat /etc/hostname) else - opts="${hostname:-localhost}" + name="${hostname:-localhost}" fi ebegin "Setting hostname" - hostname $opts + hostname $name eend $? } -- cgit v1.2.1