From 9073ce613da8af14328530042125284336df151a Mon Sep 17 00:00:00 2001 From: Matthias Hentges Date: Thu, 13 Apr 2006 17:46:05 +0000 Subject: udev: Add changes from .oz354x --- packages/udev/files/akita/.mtn2git_empty | 0 packages/udev/files/akita/mount.blacklist | 4 ++++ packages/udev/files/c7x0/.mtn2git_empty | 0 packages/udev/files/c7x0/mount.blacklist | 4 ++++ packages/udev/files/mount.blacklist | 0 packages/udev/files/mount.sh | 10 ++++++++++ packages/udev/files/spitz/.mtn2git_empty | 0 packages/udev/files/spitz/mount.blacklist | 5 +++++ packages/udev/files/tosa/.mtn2git_empty | 0 packages/udev/files/tosa/mount.blacklist | 4 ++++ 10 files changed, 27 insertions(+) create mode 100644 packages/udev/files/akita/.mtn2git_empty create mode 100644 packages/udev/files/akita/mount.blacklist create mode 100644 packages/udev/files/c7x0/.mtn2git_empty create mode 100644 packages/udev/files/c7x0/mount.blacklist create mode 100644 packages/udev/files/mount.blacklist create mode 100644 packages/udev/files/spitz/.mtn2git_empty create mode 100644 packages/udev/files/spitz/mount.blacklist create mode 100644 packages/udev/files/tosa/.mtn2git_empty create mode 100644 packages/udev/files/tosa/mount.blacklist (limited to 'packages/udev/files') diff --git a/packages/udev/files/akita/.mtn2git_empty b/packages/udev/files/akita/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/udev/files/akita/mount.blacklist b/packages/udev/files/akita/mount.blacklist new file mode 100644 index 0000000000..c2684b7c28 --- /dev/null +++ b/packages/udev/files/akita/mount.blacklist @@ -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 index 0000000000..e69de29bb2 diff --git a/packages/udev/files/c7x0/mount.blacklist b/packages/udev/files/c7x0/mount.blacklist new file mode 100644 index 0000000000..c2684b7c28 --- /dev/null +++ b/packages/udev/files/c7x0/mount.blacklist @@ -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 index 0000000000..e69de29bb2 diff --git a/packages/udev/files/mount.sh b/packages/udev/files/mount.sh index 7e641b08d7..010b7289f2 100644 --- a/packages/udev/files/mount.sh +++ b/packages/udev/files/mount.sh @@ -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 index 0000000000..e69de29bb2 diff --git a/packages/udev/files/spitz/mount.blacklist b/packages/udev/files/spitz/mount.blacklist new file mode 100644 index 0000000000..1dad9117da --- /dev/null +++ b/packages/udev/files/spitz/mount.blacklist @@ -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 index 0000000000..e69de29bb2 diff --git a/packages/udev/files/tosa/mount.blacklist b/packages/udev/files/tosa/mount.blacklist new file mode 100644 index 0000000000..c2684b7c28 --- /dev/null +++ b/packages/udev/files/tosa/mount.blacklist @@ -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 -- cgit v1.2.3