From: Felix Fietkau Date: Sun, 11 Sep 2011 14:23:23 +0000 (+0200) Subject: reorder code X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=0b29011386305b9364ed25609b0dcfe351c610c5 reorder code --- 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; }