19 lines
559 B
Diff
19 lines
559 B
Diff
Source: https://github.com/Bumblebee-Project/Bumblebee/commit/1ada79fe5916961fc4e4917f8c63bb184908d986
|
|
Upstream: From devel branch
|
|
Reason: Required for "20-better-module-load-unload.patch" to be successfully applied.
|
|
|
|
diff --git src/module.c src/module.c
|
|
index f7b99fa..f6d7144 100644
|
|
--- src/module.c
|
|
+++ src/module.c
|
|
@@ -96,7 +96,8 @@ int module_unload(char *driver) {
|
|
int retries = 30;
|
|
bb_log(LOG_INFO, "Unloading %s driver\n", driver);
|
|
char *mod_argv[] = {
|
|
- "rmmod",
|
|
+ "modprobe",
|
|
+ "-r",
|
|
driver,
|
|
NULL
|
|
};
|