mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-22 03:00:26 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user