diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-08-08 07:41:48 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-08-08 07:41:48 +0000 |
commit | 9c6564913444836841e9089a6b371cd5997c83b3 (patch) | |
tree | 528d56d86ca7f85adc7978b42de46a2636a5427b /meta/packages | |
parent | 29346602b44a28a29e12afc4ec60ab91ed7f0a9c (diff) | |
download | openembedded-core-9c6564913444836841e9089a6b371cd5997c83b3.tar.gz openembedded-core-9c6564913444836841e9089a6b371cd5997c83b3.tar.bz2 openembedded-core-9c6564913444836841e9089a6b371cd5997c83b3.tar.xz openembedded-core-9c6564913444836841e9089a6b371cd5997c83b3.zip |
udev: improved mount.sh
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5025 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages')
-rw-r--r-- | meta/packages/udev/files/akita/mount.blacklist | 5 | ||||
-rw-r--r-- | meta/packages/udev/files/c7x0/mount.blacklist | 5 | ||||
-rw-r--r-- | meta/packages/udev/files/mount.sh | 4 | ||||
-rw-r--r-- | meta/packages/udev/files/spitz/mount.blacklist | 5 | ||||
-rw-r--r-- | meta/packages/udev/files/tosa/mount.blacklist | 5 | ||||
-rw-r--r-- | meta/packages/udev/udev_124.bb | 2 |
6 files changed, 7 insertions, 19 deletions
diff --git a/meta/packages/udev/files/akita/mount.blacklist b/meta/packages/udev/files/akita/mount.blacklist index 7e351bc98..c15b58229 100644 --- a/meta/packages/udev/files/akita/mount.blacklist +++ b/meta/packages/udev/files/akita/mount.blacklist @@ -1,6 +1,3 @@ -# This is a grep pattern matched against the device name -# Any matched pattern will _not_ be mounted / removed by udevd - /dev/mtdblock /dev/loop -/dev/ram
\ No newline at end of file +/dev/ram diff --git a/meta/packages/udev/files/c7x0/mount.blacklist b/meta/packages/udev/files/c7x0/mount.blacklist index 7e351bc98..c15b58229 100644 --- a/meta/packages/udev/files/c7x0/mount.blacklist +++ b/meta/packages/udev/files/c7x0/mount.blacklist @@ -1,6 +1,3 @@ -# This is a grep pattern matched against the device name -# Any matched pattern will _not_ be mounted / removed by udevd - /dev/mtdblock /dev/loop -/dev/ram
\ No newline at end of file +/dev/ram diff --git a/meta/packages/udev/files/mount.sh b/meta/packages/udev/files/mount.sh index 0ce1dc721..53fefa368 100644 --- a/meta/packages/udev/files/mount.sh +++ b/meta/packages/udev/files/mount.sh @@ -9,9 +9,9 @@ MOUNT="/bin/mount" PMOUNT="/usr/bin/pmount" UMOUNT="/bin/umount" -for line in `grep -v ^# /etc/udev/mount.blacklist` +for line in `cat /etc/udev/mount.blacklist` do - if { echo "$DEVNAME" | grep -q "$line" ; } + if [ ` expr match "$DEVNAME" "$line" ` -gt 0 ]; then logger "udev/mount.sh" "[$DEVNAME] is blacklisted, ignoring" exit 0 diff --git a/meta/packages/udev/files/spitz/mount.blacklist b/meta/packages/udev/files/spitz/mount.blacklist index 38c7aa4b3..aee308f9b 100644 --- a/meta/packages/udev/files/spitz/mount.blacklist +++ b/meta/packages/udev/files/spitz/mount.blacklist @@ -1,7 +1,4 @@ -# This is a grep pattern matched against the device name -# Any matched pattern will _not_ be mounted / removed by udevd - /dev/mtdblock /dev/hda /dev/loop -/dev/ram
\ No newline at end of file +/dev/ram diff --git a/meta/packages/udev/files/tosa/mount.blacklist b/meta/packages/udev/files/tosa/mount.blacklist index 7e351bc98..c15b58229 100644 --- a/meta/packages/udev/files/tosa/mount.blacklist +++ b/meta/packages/udev/files/tosa/mount.blacklist @@ -1,6 +1,3 @@ -# This is a grep pattern matched against the device name -# Any matched pattern will _not_ be mounted / removed by udevd - /dev/mtdblock /dev/loop -/dev/ram
\ No newline at end of file +/dev/ram diff --git a/meta/packages/udev/udev_124.bb b/meta/packages/udev/udev_124.bb index e0f694565..db8de02ef 100644 --- a/meta/packages/udev/udev_124.bb +++ b/meta/packages/udev/udev_124.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." RPROVIDES_${PN} = "hotplug" -PR = "r5" +PR = "r6" SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \ file://noasmlinkage.patch;patch=1 \ |