summaryrefslogtreecommitdiff
path: root/packages/initscripts/initscripts-1.0/slugos/bootclean.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packages/initscripts/initscripts-1.0/slugos/bootclean.sh')
-rw-r--r--packages/initscripts/initscripts-1.0/slugos/bootclean.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/initscripts/initscripts-1.0/slugos/bootclean.sh b/packages/initscripts/initscripts-1.0/slugos/bootclean.sh
index 1304cb3794..3b17d6d617 100644
--- a/packages/initscripts/initscripts-1.0/slugos/bootclean.sh
+++ b/packages/initscripts/initscripts-1.0/slugos/bootclean.sh
@@ -16,8 +16,8 @@
if [ -d /tmp -a ! -L /tmp ] ; then
echo "bootclean.sh: Cleaning /tmp..."
cd /tmp || { echo "bootclean.sh: unable to cd to /tmp." ; return 1 ; }
- find . -depth -xdev ! -type d -print0 | xargs -0r rm -f --
- find . -depth -xdev -type d ! -name . -empty -exec rmdir \{\} \;
+ find . -xdev ! -type d -print0 | xargs -0r rm -f --
+ find . -depth -xdev -type d ! -name . -exec rmdir \{\} \;
else
echo "bootclean.sh: Skipping /tmp (not a directory)..."
fi