mount.sh: Changed rmdir back to rm -r, as it caused troubles with SD
[openembedded.git] / recipes / udev / udev-151 / omap3-pandora / mount.sh
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