[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
Changes by:	mgrac sourceware org	2007-06-04 11:01:35

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&r1=1.25&r2=1.26

--- cluster/rgmanager/src/resources/ip.sh	2007/04/27 17:56:06	1.25
+++ cluster/rgmanager/src/resources/ip.sh	2007/06/04 11:01:34	1.26
@@ -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]