modunload was not unloading dependent modules correctly due to
incorrect string handling.  Fix provided by zak.kipl...@cantab.net.
---
 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
Pm-utils@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pm-utils

Reply via email to