mount.sh: Fixed uid for unmounting using HAL
authorMichael Mrozek <EvilDragon@openpandora.de>
Thu, 22 Sep 2011 00:34:56 +0000 (02:34 +0200)
committerMichael Mrozek <EvilDragon@openpandora.de>
Thu, 22 Sep 2011 00:34:56 +0000 (02:34 +0200)
recipes/udev/udev-151/omap3-pandora/mount.sh
recipes/udev/udev_151.bb

index f29df04..ad10a3e 100755 (executable)
@@ -12,6 +12,7 @@ blkid="/usr/sbin/blkid"
 name="`basename "$DEVNAME"`"
 name2="`$blkid "$DEVNAME" -c /dev/null -o value -s LABEL | sed 's/ /_/g'`"
 name3=$(echo $DEVNAME | sed 's/.*dev.//g')
+uid=$(cat /tmp/currentuid)
 
 for line in `grep -v ^# /etc/udev/mount.blacklist`
 do
@@ -43,7 +44,7 @@ automount() {
                logger "mount.sh/automount" "Auto-mount of [/media/$name] successful"
                touch "/tmp/.automount-$name3"
                fstype=$(cat /etc/mtab | grep $DEVNAME | awk  '{print $3}') 
-               echo "$DEVNAME  1000    0       $fstype dirsync,noatime,umask=0 /media/$name" >> /media/.hal-mtab
+               echo "$DEVNAME  $uid    0       $fstype dirsync,noatime,umask=0 /media/$name" >> /media/.hal-mtab
                touch /media/.hal-mtab-lock
        fi
 }
index 89f9831..10eafda 100644 (file)
@@ -3,7 +3,7 @@ DESCRIPTION = "udev is a daemon which dynamically creates and removes device nod
 the hotplug package and requires a kernel not older than 2.6.12."
 LICENSE = "GPLv2+"
 
-PR = "r19"
+PR = "r20"
 
 # Untested
 DEFAULT_PREFERENCE = "-1"