From 6d4db8a294d25dc82998a281f4cb799a1cb20e67 Mon Sep 17 00:00:00 2001 From: Adam Cecile Date: Mon, 19 Sep 2016 10:02:01 +0200 Subject: [PATCH] megaclisas-status: Handle MegaCli.exe bin name for Windows --- wrapper-scripts/megaclisas-status | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrapper-scripts/megaclisas-status b/wrapper-scripts/megaclisas-status index 057aa68..268572d 100755 --- a/wrapper-scripts/megaclisas-status +++ b/wrapper-scripts/megaclisas-status @@ -91,7 +91,7 @@ def which(program): return None # Find MegaCli -for megabin in "MegaCli64","MegaCli","megacli": +for megabin in "MegaCli64","MegaCli","megacli", "MegaCli.exe": dbgprint ('Looking for '+str(megabin)+' in PATH next..') megaclipath = which(megabin) if (megaclipath != None): @@ -109,7 +109,7 @@ if (megaclipath != None): print 'Cannot find ' + megaclipath + 'in your PATH. Please install it.' sys.exit(3) 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)