[PATCH skeleton v7 6/6] Fix gpioutil tool

OpenBMC Patches openbmc-patches at stwcx.xyz
Fri Jun 17 00:40:56 AEST 2016


From: Adriana Kobylak <anoo at us.ibm.com>

Fix gpioutil tool to parse commands, this broke with the
skeleton refactoring commit.

Signed-off-by: Adriana Kobylak <anoo at us.ibm.com>
---
 pytools/gpioutil | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pytools/gpioutil b/pytools/gpioutil
index b6ec5ea..58e02e6 100644
--- a/pytools/gpioutil
+++ b/pytools/gpioutil
@@ -19,6 +19,9 @@ def printUsage():
 if (len(sys.argv) < 2):
 	printUsage()
 
+# Pop the command name and point to the args
+sys.argv.pop(0)
+
 GPIO_SYSFS = '/sys/class/gpio/'
 
 class Gpio:
-- 
2.8.4




More information about the openbmc mailing list