mount.sh: Changed it so that spaces will be converted to underscores
authorMichael Mrozek <EvilDragon@openpandora.de>
Mon, 5 Jul 2010 01:58:22 +0000 (03:58 +0200)
committerDavid-John Willis <John.Willis@Distant-earth.com>
Mon, 4 Apr 2011 19:15:45 +0000 (20:15 +0100)
(until libpnd is fixed)

recipes/udev/udev-151/omap3-pandora/mount.sh

index 979fb27..d69ae9d 100755 (executable)
@@ -10,7 +10,7 @@ PMOUNT="/usr/bin/pmount"
 UMOUNT="/bin/umount"
 blkid="/usr/sbin/blkid"
 name="`basename "$DEVNAME"`"
-name2="`$blkid "$DEVNAME" -c /dev/null -o value -s LABEL`"
+name2="`$blkid "$DEVNAME" -c /dev/null -o value -s LABEL | sed 's/ /_/g'`"
 name3=$(echo $DEVNAME | sed 's/.*dev.//g')
 
 for line in `grep -v ^# /etc/udev/mount.blacklist`