udev: Add changes from .oz354x
authorMatthias Hentges <oe@hentges.net>
Thu, 13 Apr 2006 17:46:05 +0000 (17:46 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Thu, 13 Apr 2006 17:46:05 +0000 (17:46 +0000)
12 files changed:
packages/udev/files/akita/.mtn2git_empty [new file with mode: 0644]
packages/udev/files/akita/mount.blacklist [new file with mode: 0644]
packages/udev/files/c7x0/.mtn2git_empty [new file with mode: 0644]
packages/udev/files/c7x0/mount.blacklist [new file with mode: 0644]
packages/udev/files/mount.blacklist [new file with mode: 0644]
packages/udev/files/mount.sh
packages/udev/files/spitz/.mtn2git_empty [new file with mode: 0644]
packages/udev/files/spitz/mount.blacklist [new file with mode: 0644]
packages/udev/files/tosa/.mtn2git_empty [new file with mode: 0644]
packages/udev/files/tosa/mount.blacklist [new file with mode: 0644]
packages/udev/udev_084.bb
packages/udev/udev_089.bb

diff --git a/packages/udev/files/akita/.mtn2git_empty b/packages/udev/files/akita/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/udev/files/akita/mount.blacklist b/packages/udev/files/akita/mount.blacklist
new file mode 100644 (file)
index 0000000..c2684b7
--- /dev/null
@@ -0,0 +1,4 @@
+# This is a grep pattern matched against the device name
+# Any matched pattern will _not_ be mounted / removed by udevd
+
+/dev/mtdblock
diff --git a/packages/udev/files/c7x0/.mtn2git_empty b/packages/udev/files/c7x0/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/udev/files/c7x0/mount.blacklist b/packages/udev/files/c7x0/mount.blacklist
new file mode 100644 (file)
index 0000000..c2684b7
--- /dev/null
@@ -0,0 +1,4 @@
+# This is a grep pattern matched against the device name
+# Any matched pattern will _not_ be mounted / removed by udevd
+
+/dev/mtdblock
diff --git a/packages/udev/files/mount.blacklist b/packages/udev/files/mount.blacklist
new file mode 100644 (file)
index 0000000..e69de29
index 7e641b0..010b728 100644 (file)
@@ -9,6 +9,16 @@ MOUNT="/bin/mount"
 PMOUNT="/usr/bin/pmount"
 UMOUNT="/bin/umount"
 
+for line in `cat /etc/udev/mount.blacklist | grep -v ^#`
+do
+       if ( echo "$DEVNAME" | grep -q "$line" )
+       then
+               logger "udev/mount.sh" "[$DEVNAME] is blacklisted, ignoring"
+               exit 0
+       fi
+done
+       
+
 if [ "$ACTION" = "add" ] && [ -n "$DEVNAME" ]; then
        if [ -x "$PMOUNT" ]; then
                $PMOUNT $DEVNAME 2> /dev/null
diff --git a/packages/udev/files/spitz/.mtn2git_empty b/packages/udev/files/spitz/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/udev/files/spitz/mount.blacklist b/packages/udev/files/spitz/mount.blacklist
new file mode 100644 (file)
index 0000000..1dad911
--- /dev/null
@@ -0,0 +1,5 @@
+# This is a grep pattern matched against the device name
+# Any matched pattern will _not_ be mounted / removed by udevd
+
+/dev/mtdblock
+/dev/hda
diff --git a/packages/udev/files/tosa/.mtn2git_empty b/packages/udev/files/tosa/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/udev/files/tosa/mount.blacklist b/packages/udev/files/tosa/mount.blacklist
new file mode 100644 (file)
index 0000000..c2684b7
--- /dev/null
@@ -0,0 +1,4 @@
+# This is a grep pattern matched against the device name
+# Any matched pattern will _not_ be mounted / removed by udevd
+
+/dev/mtdblock
index fc8a701..30baa9e 100644 (file)
@@ -7,13 +7,14 @@ SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
           file://noasmlinkage.patch;patch=1 \
           file://flags.patch;patch=1 \
           file://udevsynthesize.patch;patch=1 \
-          file://udevsynthesize.sh"
-
+          file://udevsynthesize.sh \
+          file://mount.blacklist"
+          
 include udev.inc
 
 INITSCRIPT_PARAMS = "start 03 S . start 55 0 6 ."
 
-PR = "r4"
+PR = "r5"
 
 FILES_${PN} += "${base_libdir}"
 UDEV_EXTRAS = "extras/firmware/ extras/scsi_id/ extras/volume_id/ extras/run_directory/"
@@ -28,6 +29,7 @@ do_install () {
 
        install -d ${D}${sysconfdir}/udev/rules.d/
 
+       install -m 0644 ${WORKDIR}/mount.blacklist     ${D}${sysconfdir}/udev/
        install -m 0644 ${WORKDIR}/local.rules         ${D}${sysconfdir}/udev/rules.d/local.rules
        install -m 0644 ${WORKDIR}/permissions.rules   ${D}${sysconfdir}/udev/rules.d/permissions.rules
        install -m 0644 ${WORKDIR}/udev.rules          ${D}${sysconfdir}/udev/rules.d/udev.rules
index 28cda40..ba1e5b4 100644 (file)
@@ -5,11 +5,14 @@ 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 = "hotplug"
 
+PR = "r1"
+
 SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
           file://noasmlinkage.patch;patch=1 \
           file://flags.patch;patch=1 \
           file://udevsynthesize.patch;patch=1 \
-          file://udevsynthesize.sh"
+          file://udevsynthesize.sh \
+          file://mount.blacklist"
 
 include udev.inc
 
@@ -28,6 +31,7 @@ do_install () {
 
        install -d ${D}${sysconfdir}/udev/rules.d/
 
+       install -m 0644 ${WORKDIR}/mount.blacklist     ${D}${sysconfdir}/udev/
        install -m 0644 ${WORKDIR}/local.rules         ${D}${sysconfdir}/udev/rules.d/local.rules
        install -m 0644 ${WORKDIR}/permissions.rules   ${D}${sysconfdir}/udev/rules.d/permissions.rules
        install -m 0644 ${WORKDIR}/udev.rules          ${D}${sysconfdir}/udev/rules.d/udev.rules