diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/udev/udev-extraconf/automount.rules | 2 | ||||
-rw-r--r-- | meta/recipes-core/udev/udev-extraconf/mount.sh | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/meta/recipes-core/udev/udev-extraconf/automount.rules b/meta/recipes-core/udev/udev-extraconf/automount.rules index 7e844c31bd..62578ea631 100644 --- a/meta/recipes-core/udev/udev-extraconf/automount.rules +++ b/meta/recipes-core/udev/udev-extraconf/automount.rules | |||
@@ -16,4 +16,4 @@ | |||
16 | # Media automounting | 16 | # Media automounting |
17 | SUBSYSTEM=="block", ACTION=="add" RUN+="/etc/udev/scripts/mount.sh" | 17 | SUBSYSTEM=="block", ACTION=="add" RUN+="/etc/udev/scripts/mount.sh" |
18 | SUBSYSTEM=="block", ACTION=="remove" RUN+="/etc/udev/scripts/mount.sh" | 18 | SUBSYSTEM=="block", ACTION=="remove" RUN+="/etc/udev/scripts/mount.sh" |
19 | 19 | SUBSYSTEM=="block", ACTION=="change", ENV{DISK_MEDIA_CHANGE}=="1" RUN+="/etc/udev/scripts/mount.sh" | |
diff --git a/meta/recipes-core/udev/udev-extraconf/mount.sh b/meta/recipes-core/udev/udev-extraconf/mount.sh index 7df1b6e3e7..3eea910854 100644 --- a/meta/recipes-core/udev/udev-extraconf/mount.sh +++ b/meta/recipes-core/udev/udev-extraconf/mount.sh | |||
@@ -78,8 +78,7 @@ if [ "$ACTION" = "add" ] && [ -n "$DEVNAME" ] && [ -n "$ID_FS_TYPE" -o "$media_t | |||
78 | fi | 78 | fi |
79 | 79 | ||
80 | 80 | ||
81 | 81 | if [ "$ACTION" = "remove" ] || [ "$ACTION" = "change" ] && [ -x "$UMOUNT" ] && [ -n "$DEVNAME" ]; then | |
82 | if [ "$ACTION" = "remove" ] && [ -x "$UMOUNT" ] && [ -n "$DEVNAME" ]; then | ||
83 | for mnt in `cat /proc/mounts | grep "$DEVNAME" | cut -f 2 -d " " ` | 82 | for mnt in `cat /proc/mounts | grep "$DEVNAME" | cut -f 2 -d " " ` |
84 | do | 83 | do |
85 | $UMOUNT $mnt | 84 | $UMOUNT $mnt |