fixed defect 2883734: recreate ml0 configuration after remove ml0
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4453 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
4f1f15eb22
commit
3bb01a2207
@ -129,6 +129,14 @@ if ( $PLTFRM eq "AIX" ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
#Check whether the ml0 is available
|
||||
my $lsdev_cmd = "lsdev -C | grep ml0 2>&1 >/dev/null";
|
||||
`$lsdev_cmd`;
|
||||
if ( $? ) {
|
||||
my $cfgmgr_cmd = "cfgmgr 2>&1 >/dev/null";
|
||||
`$cfgmgr_cmd`;
|
||||
}
|
||||
|
||||
my $chdev_cmd = "chdev -l ml0 -a state=detach 2>&1";
|
||||
runcmd($chdev_cmd);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user