mirror of
https://github.com/eLvErDe/hwraid.git
synced 2025-07-26 15:24:01 +02:00
megaclisas-status: Handle MegaCli.exe bin name for Windows
This commit is contained in:
parent
a87f5a9d18
commit
6d4db8a294
@ -91,7 +91,7 @@ def which(program):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
# Find MegaCli
|
# Find MegaCli
|
||||||
for megabin in "MegaCli64","MegaCli","megacli":
|
for megabin in "MegaCli64","MegaCli","megacli", "MegaCli.exe":
|
||||||
dbgprint ('Looking for '+str(megabin)+' in PATH next..')
|
dbgprint ('Looking for '+str(megabin)+' in PATH next..')
|
||||||
megaclipath = which(megabin)
|
megaclipath = which(megabin)
|
||||||
if (megaclipath != None):
|
if (megaclipath != None):
|
||||||
@ -109,7 +109,7 @@ if (megaclipath != None):
|
|||||||
print 'Cannot find ' + megaclipath + 'in your PATH. Please install it.'
|
print 'Cannot find ' + megaclipath + 'in your PATH. Please install it.'
|
||||||
sys.exit(3)
|
sys.exit(3)
|
||||||
else:
|
else:
|
||||||
print 'Cannot find "MegaCli64","MegaCli" or "megacli" in your PATH. Please install it.'
|
print 'Cannot find "MegaCli64","MegaCli" or "megacli" or "MegaCli.exe" in your PATH. Please install it.'
|
||||||
sys.exit(3)
|
sys.exit(3)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user