projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7bb1da
)
reorder code
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 11 Sep 2011 14:23:23 +0000
(16:23 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 11 Sep 2011 14:23:23 +0000
(16:23 +0200)
proto-shell.c
patch
|
blob
|
history
diff --git
a/proto-shell.c
b/proto-shell.c
index 574d969992e438c1009934a6dcdd9dc4e71ed676..ef6233f5e0fd83e2a707d9018a24fad5a10f5ab1 100644
(file)
--- a/
proto-shell.c
+++ b/
proto-shell.c
@@
-70,7
+70,7
@@
proto_shell_handler(struct interface_proto_state *proto,
argv[0] = handler->script_name;
argv[1] = handler->proto.name;
- argv[2] = "
teardown
";
+ argv[2] = "
setup
";
argv[3] = config;
argv[4] = NULL;
if (proto->iface->main_dev.dev) {
@@
-79,10
+79,10
@@
proto_shell_handler(struct interface_proto_state *proto,
}
switch(cmd) {
- case PROTO_CMD_SETUP:
- argv[2] = "setup";
- /* fall through */
case PROTO_CMD_TEARDOWN:
+ argv[2] = "teardown";
+ /* fall through */
+ case PROTO_CMD_SETUP:
ret = run_script(argv);
break;
}