aboutsummaryrefslogtreecommitdiffstats
path: root/main/openrc/hostname.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/openrc/hostname.initd')
-rw-r--r--main/openrc/hostname.initd2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/openrc/hostname.initd b/main/openrc/hostname.initd
index c1580db084..4ad7877d90 100644
--- a/main/openrc/hostname.initd
+++ b/main/openrc/hostname.initd
@@ -10,7 +10,7 @@ start() {
if [ -s /etc/hostname ] ; then
opts="-F /etc/hostname"
else
- opts="localhost"
+ opts="${hostname:-localhost}"
fi
ebegin "Setting hostname"
hostname $opts