OSDN Git Service
(root)
/
android-x86
/
external-efivar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64e5772
)
Make LIBEFIVAR_OPS=help work
author
Peter Jones
<pjones@redhat.com>
Mon, 21 May 2018 13:40:01 +0000
(09:40 -0400)
committer
Peter Jones
<pmjones@gmail.com>
Mon, 21 May 2018 15:11:50 +0000
(11:11 -0400)
Signed-off-by: Peter Jones <pjones@redhat.com>
src/lib.c
patch
|
blob
|
history
diff --git
a/src/lib.c
b/src/lib.c
index
4038a24
..
0adcde8
100644
(file)
--- a/
src/lib.c
+++ b/
src/lib.c
@@
-238,6
+238,13
@@
libefivar_init(void)
NULL
};
char *ops_name = getenv("LIBEFIVAR_OPS");
+ if (ops_name && strcasestr(ops_name, "help")) {
+ printf("LIBEFIVAR_OPS operations available:\n");
+ for (int i = 0; ops_list[i] != NULL; i++)
+ printf("\t%s\n", ops_list[i]->name);
+ exit(0);
+ }
+
for (int i = 0; ops_list[i] != NULL; i++)
{
if (ops_name != NULL) {