[Fai-commit] r6105 - branches/stable/3.4/bin
Michael Prokop
mika at alioth.debian.org
Tue Oct 5 15:15:26 UTC 2010
Author: mika
Date: 2010-10-05 15:15:23 +0000 (Tue, 05 Oct 2010)
New Revision: 6105
Modified:
branches/stable/3.4/bin/fai-setup
Log:
remove netmask from IP address (closes: #597870)
Modified: branches/stable/3.4/bin/fai-setup
===================================================================
--- branches/stable/3.4/bin/fai-setup 2010-10-05 15:15:11 UTC (rev 6104)
+++ branches/stable/3.4/bin/fai-setup 2010-10-05 15:15:23 UTC (rev 6105)
@@ -115,7 +115,7 @@
[ -f /etc/ssh/ssh_host_dsa_key.pub ] && DSASERVER=$(sed -e "s/= .*$/=/" /etc/ssh/ssh_host_dsa_key.pub)
[ -f /etc/ssh/ssh_host_rsa_key.pub ] && RSASERVER=$(sed -e "s/= .*$/=/" /etc/ssh/ssh_host_rsa_key.pub )
# determine all IP addresses, and their host names
- ips=$(ip addr show up| grep -w inet | cut -d t -f 2 | cut -d ' ' -f 2 | grep -v 127.0.0.1)
+ ips=$(ip addr show up| grep -w inet | cut -d t -f 2 | cut -d ' ' -f 2 | cut -d / -f 1 | grep -v 127.0.0.1)
for ip in $ips; do
hname=$(getent hosts $ip| tr -s ' ' ',')
: ${hname:=$ip}
More information about the Fai-commit
mailing list