summaryrefslogtreecommitdiffstats
path: root/cmds/dumpstate/dumpstate.h
diff options
context:
space:
mode:
Diffstat (limited to 'cmds/dumpstate/dumpstate.h')
-rw-r--r--cmds/dumpstate/dumpstate.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmds/dumpstate/dumpstate.h b/cmds/dumpstate/dumpstate.h
index 4e88e4b..33127fb 100644
--- a/cmds/dumpstate/dumpstate.h
+++ b/cmds/dumpstate/dumpstate.h
@@ -43,6 +43,15 @@
run_command(&c, TIMEOUT); \
}
+#define EXEC_TIMEOUT(cmd, tmout)\
+{ \
+ static struct Command c = { \
+ "/system/bin/" cmd, \
+ { cmd, 0 } \
+ }; \
+ run_command(&c, tmout); \
+}
+
#define EXEC_XBIN(cmd) \
{ \
static struct Command c = { \