From 8aabd47c6f4fefc8fbd70c34a738f7c26956d8cd Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 7 Mar 2014 19:12:16 +0100 Subject: proto-shell: defer init until after command line option processing Signed-off-by: Felix Fietkau --- proto-shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto-shell.c') diff --git a/proto-shell.c b/proto-shell.c index 37859f4..9041045 100644 --- a/proto-shell.c +++ b/proto-shell.c @@ -769,7 +769,7 @@ proto_shell_add_handler(const char *script, const char *name, json_object *obj) add_proto_handler(proto); } -static void __init proto_shell_init(void) +void proto_shell_init(void) { proto_fd = netifd_open_subdir("proto"); if (proto_fd < 0) -- cgit v1.2.1