summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/hostname
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.d/hostname')
-rw-r--r--etc/rc.d/hostname4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/hostname b/etc/rc.d/hostname
index 65b6ba2..634add2 100644
--- a/etc/rc.d/hostname
+++ b/etc/rc.d/hostname
@@ -47,7 +47,7 @@ hostname_start()
if [ `$SYSCTL_N security.jail.set_hostname_allowed` -eq 0 ]; then
return
fi
- elif [ -n "`hostname -s`" ]; then
+ elif [ -n "`/bin/hostname -s`" ]; then
return
else
# If we're not in a jail and rc.conf doesn't specify a
@@ -59,7 +59,7 @@ hostname_start()
fi
fi
- hostname ${hostname}
+ /bin/hostname ${hostname}
echo "Setting hostname: `hostname`."
}
OpenPOWER on IntegriCloud