mirror of
https://github.com/sheumann/hush.git
synced 2025-02-21 19:29:03 +00:00
modprobe_small: make rmmod to NOT remove dependencies. Closes 5162
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
0b4980c252
commit
06a98e32ae
@ -594,11 +594,18 @@ static void process_module(char *name, const char *cmdline_options)
|
|||||||
bb_perror_msg("remove '%s'", name);
|
bb_perror_msg("remove '%s'", name);
|
||||||
goto ret;
|
goto ret;
|
||||||
}
|
}
|
||||||
/* N.B. we do not stop here -
|
|
||||||
|
if (applet_name[0] == 'r') {
|
||||||
|
/* rmmod: do not remove dependencies, exit */
|
||||||
|
goto ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* modprobe -r: we do not stop here -
|
||||||
* continue to unload modules on which the module depends:
|
* continue to unload modules on which the module depends:
|
||||||
* "-r --remove: option causes modprobe to remove a module.
|
* "-r --remove: option causes modprobe to remove a module.
|
||||||
* If the modules it depends on are also unused, modprobe
|
* If the modules it depends on are also unused, modprobe
|
||||||
* will try to remove them, too." */
|
* will try to remove them, too."
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!info) {
|
if (!info) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user