From: John Crispin Date: Sun, 12 Jan 2014 13:07:18 +0000 (+0100) Subject: fix bogus kmodloader warning X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c907116d6c4f471f693717f055e54a0f06db35d4;p=oweals%2Fubox.git fix bogus kmodloader warning https://dev.openwrt.org/ticket/14659 Signed-off-by: John Crispin --- diff --git a/kmodloader.c b/kmodloader.c index 11af0ae..7840215 100644 --- a/kmodloader.c +++ b/kmodloader.c @@ -526,6 +526,11 @@ static int main_insmod(int argc, char **argv) cur += sprintf(cur, "%s", argv[i]); } + if (!get_module_path(name)) { + fprintf(stderr, "Failed to find %s. Maybe it is a built in module ?\n", name); + return -1; + } + ret = insert_module(get_module_path(name), options); free(options);