From 0b29011386305b9364ed25609b0dcfe351c610c5 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 11 Sep 2011 16:23:23 +0200 Subject: [PATCH] reorder code --- proto-shell.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/proto-shell.c b/proto-shell.c index 574d969..ef6233f 100644 --- 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; } -- 2.11.0