summaryrefslogtreecommitdiff
path: root/sh/rc-mount.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh/rc-mount.sh')
-rw-r--r--sh/rc-mount.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/rc-mount.sh b/sh/rc-mount.sh
index 94de3b6..08839c3 100644
--- a/sh/rc-mount.sh
+++ b/sh/rc-mount.sh
@@ -12,8 +12,8 @@ do_unmount() {
f_kill="-"
fi
- mountinfo ${2:+--skip-point-regex} $2 ${3:+--node-regex} $3 ${4:+--fstype-regex} $4 ${5:+--skip-fstype-regex} $5 | \
- while read mnt; do
+ shift
+ mountinfo "$@" | while read mnt; do
case "${cmd}" in
umount*)
# If we're using the mount (probably /usr) then don't unmount us