summaryrefslogtreecommitdiff
path: root/pm/functions.in
diff options
context:
space:
mode:
Diffstat (limited to 'pm/functions.in')
-rw-r--r--pm/functions.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/pm/functions.in b/pm/functions.in
index edee445..970b3b5 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##*,}"