multicall: add self_applet
This commit is contained in:
parent
2be5add47b
commit
f871002ecc
1 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,7 @@ extern struct if_applet ifquery_applet;
|
||||||
extern struct if_applet ifup_applet;
|
extern struct if_applet ifup_applet;
|
||||||
extern struct if_applet ifdown_applet;
|
extern struct if_applet ifdown_applet;
|
||||||
struct if_applet ifupdown_applet;
|
struct if_applet ifupdown_applet;
|
||||||
|
const struct if_applet *self_applet = NULL;
|
||||||
|
|
||||||
struct if_applet *applet_table[] = {
|
struct if_applet *applet_table[] = {
|
||||||
&ifdown_applet,
|
&ifdown_applet,
|
||||||
|
@ -62,6 +63,7 @@ main(int argc, char *argv[])
|
||||||
multicall_usage(EXIT_FAILURE);
|
multicall_usage(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self_applet = *app;
|
||||||
process_options(*app, argc, argv);
|
process_options(*app, argc, argv);
|
||||||
|
|
||||||
return (*app)->main(argc, argv);
|
return (*app)->main(argc, argv);
|
||||||
|
|
Loading…
Reference in a new issue