diff options
author | Erik Troan <ewt@redhat.com> | 1997-10-21 01:28:05 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1997-10-21 01:28:05 +0000 |
commit | c711cf3f88d09bcf3c40119d6bcf13b9a38d4c66 (patch) | |
tree | cd9855704a883dd6f4799d04beb2aa4f1ac05f03 /sysconfig/network-scripts | |
parent | a75f5e8b1306296cc0bb6ec34c1e15857c261818 (diff) | |
download | initscripts-c711cf3f88d09bcf3c40119d6bcf13b9a38d4c66.tar initscripts-c711cf3f88d09bcf3c40119d6bcf13b9a38d4c66.tar.gz initscripts-c711cf3f88d09bcf3c40119d6bcf13b9a38d4c66.tar.bz2 initscripts-c711cf3f88d09bcf3c40119d6bcf13b9a38d4c66.tar.xz initscripts-c711cf3f88d09bcf3c40119d6bcf13b9a38d4c66.zip |
set hostname from bootp if hostname = (none)
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-x | sysconfig/network-scripts/ifup | 2 |
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 |