X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=fremantle%2Feasy-chroot%2Fsrc%2Fsbin%2Fqumount;h=db989741dc06c9c4260c8fd0106d9cc72d45448a;hb=d17ba37c01c5014a82c318b8dfeb09bd27cf209b;hp=03701a0785b8284a8cb70c5b526130b638612c3d;hpb=af7fe7476a5e0a0bdb128020fe30522b15c070e7;p=easy-deb-chroot diff --git a/fremantle/easy-chroot/src/sbin/qumount b/fremantle/easy-chroot/src/sbin/qumount index 03701a0..db98974 100755 --- a/fremantle/easy-chroot/src/sbin/qumount +++ b/fremantle/easy-chroot/src/sbin/qumount @@ -24,6 +24,12 @@ if [ "x$MNTPT" = x ] ; then fi fi +# Strip off a trailing slash +LASTCHAR=`echo $MNTPT | cut -c ${#MNTPT}` +if [ "$LASTCHAR" = "/" ] ; then + echo "..stripping trailing slash..." >/dev/stderr + MNTPT=`echo $MNTPT | cut -c 0-$((${#MNTPT}-1))` +fi TEST1=`mount | grep " $MNTPT "`