From 305dc00357f09927b9cba2efca356855a6e0b9ae Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Wed, 13 Jul 2011 06:53:22 +0000 Subject: [PATCH] In some case, ml device driver could not be initialized during boot, rc.ml could resolve this issue. We need to call this script if mlt0 is not available. Adding some sleep here may not work since in inittab, xcataixpost is with a 'wait' attribute which means inittab will wait here until it exits. If we add some sleep here, then there will be a deadlock git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10074 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/confighfi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/xCAT/postscripts/confighfi b/xCAT/postscripts/confighfi index 1172d9b53..395e70a1c 100644 --- a/xCAT/postscripts/confighfi +++ b/xCAT/postscripts/confighfi @@ -107,11 +107,13 @@ if [ -n $CLIENT_IP ] then #Check whether the mlt0 is available `lsdev -C | grep mlt0 | grep Available 2>&1 >/dev/null` - if [ -n $? ] + if [ $? ] then - chdev -l ml0 -a state=detach - chdev -l ml0 -a netaddr=$CLIENT_IP -a netmask=$NETMASK -a state=up + /usr/ml/aix71/rc.ml fi + + chdev -l ml0 -a state=detach + chdev -l ml0 -a netaddr=$CLIENT_IP -a netmask=$NETMASK -a state=up fi fi