[Fai-commit] r6072 - trunk/bin
Thomas Lange
lange at alioth.debian.org
Thu Sep 23 21:01:26 UTC 2010
Author: lange
Date: 2010-09-23 21:01:17 +0000 (Thu, 23 Sep 2010)
New Revision: 6072
Modified:
trunk/bin/fai-setup
Log:
remove netmask from IP address (closes: #597870)
Modified: trunk/bin/fai-setup
===================================================================
--- trunk/bin/fai-setup 2010-09-21 20:19:29 UTC (rev 6071)
+++ trunk/bin/fai-setup 2010-09-23 21:01:17 UTC (rev 6072)
@@ -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