mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-23 11:40:25 +00:00
Fix lenovo utility usage of pasu
Lenovo uses the same asu utility, but a different path. Try to use the lenovo utility, falling back to the IBM location if not found.
This commit is contained in:
@@ -20,7 +20,10 @@ use xCAT::Utils;
|
||||
use Getopt::Long;
|
||||
use POSIX qw(:signal_h :errno_h :sys_wait_h);
|
||||
use Thread qw(yield);
|
||||
$::asucmd = '/opt/ibm/toolscenter/asu/asu64';
|
||||
$::asucmd = '/opt/lenovo/toolscenter/asu/asu64';
|
||||
if (! -x $::asucmd) {
|
||||
$::asucmd = '/opt/ibm/toolscenter/asu/asu64';
|
||||
}
|
||||
my $interface;
|
||||
my $username;
|
||||
my $passwd;
|
||||
|
Reference in New Issue
Block a user