Known Bugs:
===========
-* modprobe -R should not try to load module
Notes for future development:
=============================
static int verbose = DEFAULT_VERBOSE;
static int dry_run = 0;
static int ignore_loaded = 0;
-static int show_resolved_aliases = 0;
+static int lookup_only = 0;
static int first_time = 0;
static int ignore_commands = 0;
static int use_blacklist = 0;
kmod_list_foreach(l, list) {
struct kmod_module *mod = kmod_module_get_module(l);
- err = insmod_do(mod, extra_options);
+ if (lookup_only)
+ printf("%s\n", kmod_module_get_name(mod));
+ else
+ err = insmod_do(mod, extra_options);
kmod_module_unref(mod);
if (err < 0)
break;
remove_dependencies = 1;
break;
case 'R':
- show_resolved_aliases = 1;
+ lookup_only = 1;
break;
case 3:
first_time = 1;