From: Grazvydas Ignotas Date: Sun, 10 Jan 2016 17:37:25 +0000 (+0200) Subject: udev 151: mount.sh: allow to filter by uuid X-Git-Tag: sz_176~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c4290f9701c13f343ba76f2dfbf0b740f0958a8;p=openembedded.git udev 151: mount.sh: allow to filter by uuid Galaxis requested this, see: https://pyra-handheld.com/boards/threads/superzaxxon-v1-73-maintenance-release.76703/page-2#post-1361811 --- diff --git a/recipes/udev/udev-151/omap3-pandora/mount.sh b/recipes/udev/udev-151/omap3-pandora/mount.sh index 73ab5e7730..0ba6b10258 100755 --- a/recipes/udev/udev-151/omap3-pandora/mount.sh +++ b/recipes/udev/udev-151/omap3-pandora/mount.sh @@ -12,11 +12,12 @@ blkid="/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') +uuid="`$blkid "$DEVNAME" -c /dev/null -o value -s UUID`" uid=$(cat /tmp/currentuid) for line in `grep -v ^# /etc/udev/mount.blacklist` do - if ( echo "$DEVNAME" | grep -q "$line" ) + if echo "$DEVNAME" | grep -q "$line" || echo "$uuid" | grep -q "$line" then logger "udev/mount.sh" "[$DEVNAME] is blacklisted, ignoring" exit 0 diff --git a/recipes/udev/udev_151.bb b/recipes/udev/udev_151.bb index b940fd55df..fac47f87e8 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 = "r25" +PR = "r26" # Untested DEFAULT_PREFERENCE = "-1"