From: Dave Reisner Date: Thu, 26 Jan 2012 16:36:35 +0000 (-0500) Subject: modprobe: remove code referring to -t, --type X-Git-Tag: v5~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc98830ca4fb532e7e323645281a50bfc8685b6f;p=thirdparty%2Fkmod.git modprobe: remove code referring to -t, --type This was only useful with the --list function, which isn't implemented. --- diff --git a/tools/kmod-modprobe.c b/tools/kmod-modprobe.c index eaa8b2be..bbbb1f0d 100644 --- a/tools/kmod-modprobe.c +++ b/tools/kmod-modprobe.c @@ -53,7 +53,7 @@ static int strip_vermagic = 0; static int remove_dependencies = 0; static int quiet_inuse = 0; -static const char cmdopts_s[] = "arRibft:DcnC:d:S:sqvVh"; +static const char cmdopts_s[] = "arRibfDcnC:d:S:sqvVh"; static const struct option cmdopts[] = { {"all", no_argument, 0, 'a'}, {"remove", no_argument, 0, 'r'}, @@ -67,7 +67,6 @@ static const struct option cmdopts[] = { {"force-modversion", no_argument, 0, 2}, {"force-vermagic", no_argument, 0, 1}, - {"type", required_argument, 0, 't'}, {"show-depends", no_argument, 0, 'D'}, {"showconfig", no_argument, 0, 'c'}, {"show-config", no_argument, 0, 'c'}, @@ -97,7 +96,6 @@ static void help(const char *progname) "\t%s [options] -a [-i] [-b] modulename [modulename...]\n" "\t%s [options] -r [-i] modulename\n" "\t%s [options] -r -a [-i] modulename [modulename...]\n" - "\t%s [options] -l [-t dirname] [wildcard]\n" "\t%s [options] -c\n" "\t%s [options] --dump-modversions filename\n" "Management Options:\n" @@ -118,7 +116,6 @@ static void help(const char *progname) "\t --force-vermagic Ignore module's version magic\n" "\n" "Query Options:\n" - "\t-t, --type=DIR Limit type used by --list\n" "\t-D, --show-depends Only print module dependencies and exit\n" "\t-c, --showconfig Print out known configuration and exit\n" "\t-c, --show-config Same as --showconfig\n" @@ -988,7 +985,6 @@ static int do_modprobe(int argc, char **orig_argv) const char *dirname = NULL; const char *root = NULL; const char *kversion = NULL; - const char *list_type = NULL; int use_all = 0; int do_remove = 0; int do_show_config = 0; @@ -1039,9 +1035,6 @@ static int do_modprobe(int argc, char **orig_argv) case 1: strip_vermagic = 1; break; - case 't': - list_type = optarg; - break; case 'D': ignore_loaded = 1; dry_run = 1; @@ -1121,12 +1114,6 @@ static int do_modprobe(int argc, char **orig_argv) } } - if (list_type != NULL) { - fputs("Error: -t (--type) only supported with -l (--list).\n", - stderr); - goto cmdline_failed; - } - if (root != NULL || kversion != NULL) { struct utsname u; if (root == NULL)