aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1997-10-21 01:28:05 +0000
committerErik Troan <ewt@redhat.com>1997-10-21 01:28:05 +0000
commitc711cf3f88d09bcf3c40119d6bcf13b9a38d4c66 (patch)
treecd9855704a883dd6f4799d04beb2aa4f1ac05f03
parenta75f5e8b1306296cc0bb6ec34c1e15857c261818 (diff)
downloadinitscripts-c711cf3f88d09bcf3c40119d6bcf13b9a38d4c66.tar
initscripts-c711cf3f88d09bcf3c40119d6bcf13b9a38d4c66.tar.gz
initscripts-c711cf3f88d09bcf3c40119d6bcf13b9a38d4c66.tar.bz2
initscripts-c711cf3f88d09bcf3c40119d6bcf13b9a38d4c66.tar.xz
initscripts-c711cf3f88d09bcf3c40119d6bcf13b9a38d4c66.zip
set hostname from bootp if hostname = (none)
-rwxr-xr-xsysconfig/network-scripts/ifup2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index f697e60a..cbc1113c 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -147,7 +147,7 @@ if [ "$IPSETUP" != yes ]; then
done
fi
- if [ -n "$BOOTPHOSTNAME" -a -z "`hostname`" ]; then
+ if [ -n "$BOOTPHOSTNAME" -a "`hostname`" = "(none)" ]; then
hostname $BOOTPHOSTNAME
fi
fi