mirror of
https://github.com/thomas-krenn/check_lsi_raid.git
synced 2025-07-14 03:41:50 +02:00
Check if platform equals solaris
This commit is contained in:
@ -1224,7 +1224,7 @@ MAIN: {
|
||||
if(defined($version)){ print $NAME . "\nVersion: ". $VERSION . "\n"; }
|
||||
# Check storcli tool
|
||||
if(!defined($storcli)){
|
||||
if($platform eq 'linux'){
|
||||
if($platform eq 'linux' || $platform eq 'solaris'){
|
||||
$storcli = which('storcli');
|
||||
if(!defined($storcli)){
|
||||
$storcli = which('storcli64');
|
||||
@ -1242,7 +1242,7 @@ MAIN: {
|
||||
print "Ensure storcli is in your path, or use the '-p <storcli path>' switch!\n";
|
||||
exit(STATE_UNKNOWN);
|
||||
}
|
||||
if($platform eq 'linux') {
|
||||
if($platform eq 'linux' || $platform eq 'solaris') {
|
||||
if(!defined($noSudo)){
|
||||
my $sudo;
|
||||
chomp($sudo = `which sudo`);
|
||||
|
Reference in New Issue
Block a user