summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErwan Velu <erwan@mandriva.org>2002-11-21 15:47:30 +0000
committerErwan Velu <erwan@mandriva.org>2002-11-21 15:47:30 +0000
commit7173a9ac6a7d23ef14f56dadf954dae320661c5b (patch)
treee9f550859c69b360c770f9b1e4b02ea8b02e523e
parent8a2347b105d5c0d1025cce30b622e248d3cf38b8 (diff)
downloaddrakx-7173a9ac6a7d23ef14f56dadf954dae320661c5b.tar
drakx-7173a9ac6a7d23ef14f56dadf954dae320661c5b.tar.gz
drakx-7173a9ac6a7d23ef14f56dadf954dae320661c5b.tar.bz2
drakx-7173a9ac6a7d23ef14f56dadf954dae320661c5b.tar.xz
drakx-7173a9ac6a7d23ef14f56dadf954dae320661c5b.zip
Fixing wrong hostname
-rwxr-xr-xrescue/tree/ka/setup_network.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/rescue/tree/ka/setup_network.sh b/rescue/tree/ka/setup_network.sh
index d570f1f62..5c4967e8e 100755
--- a/rescue/tree/ka/setup_network.sh
+++ b/rescue/tree/ka/setup_network.sh
@@ -29,7 +29,7 @@ fi
if [ $nbfound -ne 1 ] || [ -z "$myname" ]; then
# try DNS
echo IP not found in /ka/hostnames, Trying DNS
- myname=`host $ip | grep "domain name" | cut -d " " -f 5`
+ myname=`host $ip | grep "domain name" | cut -d " " -f 5` | sed 's/\.$//g'
# myname=`nslookup $ip | grep ^Name: | tail -n +2 | head -n 1 | sed 's/Name: *//'`
fi