modunload was not unloading dependent modules correctly due to
incorrect string handling. Fix provided by [email protected].
---
pm/functions.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/pm/functions.in b/pm/functions.in
index 019e8d2..bd0705c 100644
--- a/pm/functions.in
+++ b/pm/functions.in
@@ -92,7 +92,7 @@ modunload()
RET=$?
else
# modules depend on this one. try to remove them first.
- MODS="${USED%%*,}"
+ MODS=",${USED%,}"
while [ -n "${MODS}" ]; do
# try to unload the last one first
MOD="${MODS##*,}"
--
1.6.0.6
_______________________________________________
Pm-utils mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pm-utils