From 1dc4b6a06d96c3dbe1f32ce597336b5176e34e1c Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Wed, 13 Jul 2011 06:16:28 +0000 Subject: [PATCH] Configure ml0 devices and make its ip permement git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10073 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/confighfi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/confighfi b/xCAT/postscripts/confighfi index 371bfae57..1172d9b53 100644 --- a/xCAT/postscripts/confighfi +++ b/xCAT/postscripts/confighfi @@ -105,7 +105,13 @@ CLIENT_IP=`ping -q -n -c 1 -w 1 $name-ml0 | grep PING |awk '{print $3}' | sed 's if [ -n $CLIENT_IP ] then -mkhfi -i ml0 -a $CLIENT_IP -m $NETMASK + #Check whether the mlt0 is available + `lsdev -C | grep mlt0 | grep Available 2>&1 >/dev/null` + if [ -n $? ] + then + chdev -l ml0 -a state=detach + chdev -l ml0 -a netaddr=$CLIENT_IP -a netmask=$NETMASK -a state=up + fi fi fi