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'},
{"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'},
"\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"
"\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"
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;
case 1:
strip_vermagic = 1;
break;
- case 't':
- list_type = optarg;
- break;
case 'D':
ignore_loaded = 1;
dry_run = 1;
}
}
- 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)