From: Michael Mrozek Date: Thu, 22 Sep 2011 00:34:56 +0000 (+0200) Subject: mount.sh: Fixed uid for unmounting using HAL X-Git-Tag: sz_beta3~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58d2fbbc1ff1d878da29ca229740872f2fd41217;p=openembedded.git mount.sh: Fixed uid for unmounting using HAL --- diff --git a/recipes/udev/udev-151/omap3-pandora/mount.sh b/recipes/udev/udev-151/omap3-pandora/mount.sh index f29df04cee..ad10a3ef60 100755 --- a/recipes/udev/udev-151/omap3-pandora/mount.sh +++ b/recipes/udev/udev-151/omap3-pandora/mount.sh @@ -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 } diff --git a/recipes/udev/udev_151.bb b/recipes/udev/udev_151.bb index 89f98312dd..10eafda80c 100644 --- a/recipes/udev/udev_151.bb +++ b/recipes/udev/udev_151.bb @@ -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"