summaryrefslogtreecommitdiff
path: root/extra/openrc
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-30 17:54:09 +0100
committerdavidovski <david@davidovski.xyz>2022-03-30 17:54:09 +0100
commitde16da348671bd797500ab144ae56d23e88c7463 (patch)
tree728ec7d354049c977b34d9693109cd5683992a30 /extra/openrc
parent9ae31d6c582fbb636625a87d0921fd914f33c05e (diff)
fixed initd files
Diffstat (limited to 'extra/openrc')
-rw-r--r--extra/openrc/hostname.initd6
1 files changed, 3 insertions, 3 deletions
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 $?
}