diff options
author | Matthias Hentges <oe@hentges.net> | 2006-04-13 17:46:05 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-04-13 17:46:05 +0000 |
commit | 9073ce613da8af14328530042125284336df151a (patch) | |
tree | 2116898becfdd3034d3ed5bd427b5b0687a8844f /packages/udev/files/mount.sh | |
parent | ae37f74013fca27d3f784b4b2555db57433e0c6f (diff) |
udev: Add changes from .oz354x
Diffstat (limited to 'packages/udev/files/mount.sh')
-rw-r--r-- | packages/udev/files/mount.sh | 10 |
1 files changed, 10 insertions, 0 deletions
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 |