[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/rgmanager/src/resources ip.sh



CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL5
Changes by:	mgrac sourceware org	2007-06-04 11:09:17

Modified files:
	rgmanager/src/resources: ip.sh 

Log message:
	Bug: 212479 - ip.sh causes /sbin/ip to produce warnings
	
	Missing netmask is parsed from /sbin/ip

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/ip.sh.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.21.2.3&r2=1.21.2.4

--- cluster/rgmanager/src/resources/ip.sh	2007/05/02 18:28:52	1.21.2.3
+++ cluster/rgmanager/src/resources/ip.sh	2007/06/04 11:09:17	1.21.2.4
@@ -698,6 +698,7 @@
 			if [ "${addr/\/*/}" != "$ifaddr" ]; then
 			        continue
 			fi
+			addr=`/sbin/ip addr list | grep "$addr" | head -n 1 | awk '{print $2}'`
 			ocf_log info "Removing IPv4 address $addr from $dev"
 		fi
 		


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]