c6ce65d3d0
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
18 lines
563 B
Diff
18 lines
563 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
|
|
--- a/src/module.c
|
|
+++ b/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
|
|
};
|