aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-08 23:42:09 -0500
committerDave Reisner <d@falconindy.com>2010-01-08 23:42:09 -0500
commit79aace04dec31aef79d40c2af69f469535964ae7 (patch)
treefce01ea9396ba4b0eba95c15b9e54bc93dfc52a0
parent46350bc72231c37bcbf140ff3b1d02d0a78c5117 (diff)
downloadsquashfu-79aace04dec31aef79d40c2af69f469535964ae7.tar.gz
Use mountpoint utility rather than grep'ing /proc/mounts
-rwxr-xr-xsquashfu6
1 files changed, 3 insertions, 3 deletions
diff --git a/squashfu b/squashfu
index 75cc64b..ce14860 100755
--- a/squashfu
+++ b/squashfu
@@ -172,15 +172,15 @@ unmount_all () {
unmount_seed () {
# Account for possibility of multiple mounts
- while [[ `grep "${SEED}" /proc/mounts` ]]; do
+ while [[ $(mountpoint "${BKUP_ROOT}/ro") ]]; do
umount "${SEED}"
done
}
unmount_union () {
# Account for possibility of multiple mounts
- while [[ `grep "${BKUP_ROOT}" /proc/mounts` ]]; do
- umount "${BKUP_ROOT}"
+ while [[ $(mountpoint "${BKUP_ROOT}/rw") ]]; do
+ umount "${BKUP_ROOT}/rw"
done
}