summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/network
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-04-02 12:18:40 +0000
committerkrion <krion@FreeBSD.org>2004-04-02 12:18:40 +0000
commit8997a8f44937fc81af3398ea85e964a93e4aacb3 (patch)
tree2071a55a803e7b519f93e130e741f808232fe6e5 /etc/rc.d/network
parent8ca527be931b01df7feed19d5ef1dc5e62e4e422 (diff)
downloadFreeBSD-src-8997a8f44937fc81af3398ea85e964a93e4aacb3.zip
FreeBSD-src-8997a8f44937fc81af3398ea85e964a93e4aacb3.tar.gz
- Use "/bin/hostname" explicitly instead of "hostname".
Approved by: tobez MFC after: 1 week
Diffstat (limited to 'etc/rc.d/network')
-rwxr-xr-xetc/rc.d/network4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/network b/etc/rc.d/network
index 7fcb5b2..ce3336b 100755
--- a/etc/rc.d/network
+++ b/etc/rc.d/network
@@ -26,13 +26,13 @@ network_start()
fi
if [ -n "$hostname" ]; then
echo "Hostname: $hostname"
- hostname $hostname
+ /bin/hostname $hostname
else
# Don't warn about it if we're going to run
# DHCP later, as we will probably get the
# hostname at that time.
#
- if ! checkyesno dhclient && [ -z "`hostname`" ]; then
+ if ! checkyesno dhclient && [ -z "`/bin/hostname`" ]; then
warn "\$hostname not set."
fi
fi
OpenPOWER on IntegriCloud