summaryrefslogtreecommitdiff
path: root/extra/openrc
diff options
context:
space:
mode:
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 $?
}