ssfs rev 85
ssfs-server: Fixed umount_vdisk and mount_vdisk functions. This is more of a fix for slitaz-tank so it doesn't grep /ssfs.xz which is used for ssfs repo module.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Sep 02 04:39:44 2011 +0000 (2011-09-02) |
parents | 4937afb8ea05 |
children | 9686943dd961 |
files | ssfs-server |
line diff
1.1 --- a/ssfs-server Sun Jun 19 23:10:11 2011 +0200 1.2 +++ b/ssfs-server Fri Sep 02 04:39:44 2011 +0000 1.3 @@ -131,8 +131,8 @@ 1.4 1.5 # Handle Ssfs virtual disk. 1.6 umount_vdisk() { 1.7 - if mount | fgrep -q $root; then 1.8 - loop=$(mount | fgrep $root | awk '{print $1}') 1.9 + if mount | fgrep -q "$root "; then 1.10 + loop=$(mount | fgrep "$root " | awk '{print $1}') 1.11 gettext "Unmounting Ssfs vdisk:"; echo " $vdisk" 1.12 umount $root && sleep 1 1.13 gettext "Detaching loop device:"; echo " $loop" 1.14 @@ -143,7 +143,7 @@ 1.15 } 1.16 1.17 mount_vdisk() { 1.18 - if ! mount | fgrep -q $root; then 1.19 + if ! mount | fgrep -q "$root "; then 1.20 [ -d "$root" ] || mkdir -p $root 1.21 gettext "Mounting virtual disk:" 1.22 mount -o loop -t ext3 $vdisk $root