aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.d/hostname
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-04-02 12:18:40 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-04-02 12:18:40 +0000
commit0a25d7a9ea01f4c975ad7a2ba6a2db0aa7b9a1da (patch)
tree2071a55a803e7b519f93e130e741f808232fe6e5 /etc/rc.d/hostname
parent4e55f7230a93fa32a4c4918dff3ac5a3138bfe43 (diff)
Notes
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 65b6ba2435fe..634add28800b 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`."
}