mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-09-06 02:08:25 +00:00
Update for new Lenovo OneCLI rpm
The new packaging offers up iflash64 and asu in a consistent location.
This commit is contained in:
@@ -24,12 +24,19 @@ use POSIX qw(:signal_h :errno_h :sys_wait_h);
|
||||
use Thread qw(yield);
|
||||
|
||||
if ($iam =~ /pasu/) {
|
||||
$::utilcmd = '/opt/lenovo/toolscenter/asu/asu64';
|
||||
$::utilcmd = '/opt/lenovo/onecli/asu';
|
||||
if (!-x $::utilcmd) {
|
||||
$::utilcmd = '/opt/lenovo/toolscenter/asu/asu64';
|
||||
}
|
||||
if (!-x $::utilcmd) {
|
||||
$::utilcmd = '/opt/ibm/toolscenter/asu/asu64';
|
||||
}
|
||||
} elsif ($iam =~ /piflash/) {
|
||||
$::utilcmd = '/opt/xcat/sbin/iflash64 --unattended';
|
||||
$::utilcmd = '/opt/lenovo/onecli/iflash64';
|
||||
if (!-x $::utilcmd) {
|
||||
$::utilcmd = '/opt/xcat/sbin/iflash64';
|
||||
}
|
||||
$::utilcmd .= ' --unattended'
|
||||
}
|
||||
my $interface;
|
||||
my $username;
|
||||
|
Reference in New Issue
Block a user