summaryrefslogtreecommitdiff
path: root/package/utils/busybox/patches/910-insmod-q-flag.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-05-25 17:41:59 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-05-25 17:41:59 +0000
commit63f69d0bb9c36924b8afe22498730212ca785d49 (patch)
tree574bcb886f2ea2597efdfd226e38d13e1dc97a1c /package/utils/busybox/patches/910-insmod-q-flag.patch
parent7a13084797abc30a14b584902b9984a4f55696d2 (diff)
downloadmtk-20170518-63f69d0bb9c36924b8afe22498730212ca785d49.zip
mtk-20170518-63f69d0bb9c36924b8afe22498730212ca785d49.tar.gz
mtk-20170518-63f69d0bb9c36924b8afe22498730212ca785d49.tar.bz2
busybox: remove obsolete insmod patches
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40850
Diffstat (limited to 'package/utils/busybox/patches/910-insmod-q-flag.patch')
-rw-r--r--package/utils/busybox/patches/910-insmod-q-flag.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/package/utils/busybox/patches/910-insmod-q-flag.patch b/package/utils/busybox/patches/910-insmod-q-flag.patch
deleted file mode 100644
index 6002f20..0000000
--- a/package/utils/busybox/patches/910-insmod-q-flag.patch
+++ /dev/null
@@ -1,33 +0,0 @@
---- a/modutils/insmod.c
-+++ b/modutils/insmod.c
-@@ -139,7 +139,7 @@ int insmod_main(int argc, char **argv) M
- int insmod_main(int argc UNUSED_PARAM, char **argv)
- {
- char *filename;
-- int rc;
-+ int rc, opt;
-
- /* Compat note:
- * 2.6 style insmod has no options and required filename
-@@ -149,10 +149,8 @@ int insmod_main(int argc UNUSED_PARAM, c
- * or in $MODPATH.
- */
-
-- IF_FEATURE_2_4_MODULES(
-- getopt32(argv, INSMOD_OPTS INSMOD_ARGS);
-- argv += optind - 1;
-- );
-+ opt = getopt32(argv, INSMOD_OPTS, NULL, NULL);
-+ argv += optind - 1;
-
- filename = *++argv;
- if (!filename)
-@@ -163,7 +161,7 @@ int insmod_main(int argc UNUSED_PARAM, c
- goto done;
-
- rc = bb_init_module(g_filename, parse_cmdline_module_options(argv, /*quote_spaces:*/ 0));
-- if (rc)
-+ if (rc && !(opt & INSMOD_OPT_SILENT))
- bb_error_msg("can't insert '%s': %s", filename, moderror(rc));
- free (g_filename);
-