mount.sh: Small optimization (changed rm to rmdir)
authorMichael Mrozek <EvilDragon@openpandora.de>
Sun, 23 Jan 2011 23:45:12 +0000 (00:45 +0100)
committerMichael Mrozek <EvilDragon@openpandora.de>
Sun, 23 Jan 2011 23:45:12 +0000 (00:45 +0100)
recipes/udev/files/omap3-pandora/mount.sh
recipes/udev/udev-151/omap3-pandora/mount.sh
recipes/udev/udev_151.bb

index 21440ee..6ae1420 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" && rm -r "$1"
+               ! test -z "$1" && rmdir "$1"
        else
                logger "mount.sh/automount" "Not removing non-empty directory [$1]"
        fi
index f29df04..dcca1f2 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" && rm -r "$1"
+               ! test -z "$1" && rmdir "$1"
        else
                logger "mount.sh/automount" "Not removing non-empty directory [$1]"
        fi
index 63b47f8..62805c2 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 = "r17"
+PR = "r18"
 
 # Untested
 DEFAULT_PREFERENCE = "-1"