mount.sh: Changed rmdir back to rm -r, as it caused troubles with SD
authorMichael Mrozek <EvilDragon@openpandora.de>
Mon, 7 Mar 2011 00:21:18 +0000 (01:21 +0100)
committerMichael Mrozek <EvilDragon@openpandora.de>
Mon, 7 Mar 2011 00:21:18 +0000 (01:21 +0100)
Card naming

recipes/udev/files/omap3-pandora/mount.sh
recipes/udev/udev-151/omap3-pandora/mount.sh
recipes/udev/udev_151.bb

index 6ae1420..21440ee 100644 (file)
@@ -36,7 +36,7 @@ rm_dir() {
        # We do not want to rm -r populated directories
        if test "`find "$1" | wc -l | tr -d " "`" -lt 2 -a -d "$1"
        then
-               ! test -z "$1" && rmdir "$1"
+               ! test -z "$1" && rm -r "$1"
        else
                logger "mount.sh/automount" "Not removing non-empty directory [$1]"
        fi
index dcca1f2..f29df04 100755 (executable)
@@ -52,7 +52,7 @@ rm_dir() {
        # We do not want to rm -r populated directories
        if test "`find "$1" | wc -l | tr -d " "`" -lt 2 -a -d "$1"
        then
-               ! test -z "$1" && rmdir "$1"
+               ! test -z "$1" && rm -r "$1"
        else
                logger "mount.sh/automount" "Not removing non-empty directory [$1]"
        fi
index 62805c2..89f9831 100644 (file)
@@ -3,7 +3,7 @@ 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."
 LICENSE = "GPLv2+"
 
-PR = "r18"
+PR = "r19"
 
 # Untested
 DEFAULT_PREFERENCE = "-1"