Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/rc.d More cautious about undefined hostname check in ter...
details: https://anonhg.NetBSD.org/src/rev/e63ae1ec945b
branches: trunk
changeset: 499664:e63ae1ec945b
user: nisimura <nisimura%NetBSD.org@localhost>
date: Sun Nov 26 06:46:42 2000 +0000
description:
More cautious about undefined hostname check in terms of what hostname(1)
returns.
diffstat:
etc/rc.d/network | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r caff14221298 -r e63ae1ec945b etc/rc.d/network
--- a/etc/rc.d/network Sun Nov 26 06:21:16 2000 +0000
+++ b/etc/rc.d/network Sun Nov 26 06:46:42 2000 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: network,v 1.26 2000/11/22 04:20:04 nisimura Exp $
+# $NetBSD: network,v 1.27 2000/11/26 06:46:42 nisimura Exp $
#
# PROVIDE: network
@@ -32,7 +32,7 @@
# DHCP later, as we will probably get the
# hostname at that time.
#
- if ! checkyesno dhclient && [ -z `hostname` ]; then
+ if ! checkyesno dhclient && [ -z "`hostname`" ]; then
warn "\$hostname not set."
fi
fi
Home |
Main Index |
Thread Index |
Old Index