diff options
-rw-r--r-- | meta/recipes-core/busybox/files/mdev-mount.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-core/busybox/files/mdev-mount.sh b/meta/recipes-core/busybox/files/mdev-mount.sh index b4385a157f..130e9472f3 100644 --- a/meta/recipes-core/busybox/files/mdev-mount.sh +++ b/meta/recipes-core/busybox/files/mdev-mount.sh | |||
@@ -25,7 +25,7 @@ case "$ACTION" in | |||
25 | fi | 25 | fi |
26 | # check for full-disk partition | 26 | # check for full-disk partition |
27 | if [ "${DEVBASE}" = "${MDEV}" ] ; then | 27 | if [ "${DEVBASE}" = "${MDEV}" ] ; then |
28 | if [ -d /sys/block/${DEVBASE}/${DEVBASE}*1 ] ; then | 28 | if [ -f /sys/block/${DEVBASE}/${DEVBASE}*1/partition ] ; then |
29 | # Partition detected, just quit | 29 | # Partition detected, just quit |
30 | exit 0 | 30 | exit 0 |
31 | fi | 31 | fi |
@@ -43,7 +43,7 @@ case "$ACTION" in | |||
43 | then | 43 | then |
44 | MOUNTPOINT="${MDEV_AUTOMOUNT_ROOT}/$MDEV" | 44 | MOUNTPOINT="${MDEV_AUTOMOUNT_ROOT}/$MDEV" |
45 | mkdir -p "$MOUNTPOINT" | 45 | mkdir -p "$MOUNTPOINT" |
46 | mount -t auto /dev/$MDEV "$MOUNTPOINT" | 46 | mount -t auto /dev/$MDEV "$MOUNTPOINT" || rmdir "$MOUNTPOINT" |
47 | fi | 47 | fi |
48 | ;; | 48 | ;; |
49 | remove) | 49 | remove) |