diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /packages/initscripts/initscripts-1.0/slugos/bootclean.sh | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'packages/initscripts/initscripts-1.0/slugos/bootclean.sh')
-rw-r--r-- | packages/initscripts/initscripts-1.0/slugos/bootclean.sh | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/packages/initscripts/initscripts-1.0/slugos/bootclean.sh b/packages/initscripts/initscripts-1.0/slugos/bootclean.sh deleted file mode 100644 index 3b17d6d617..0000000000 --- a/packages/initscripts/initscripts-1.0/slugos/bootclean.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/sh -# -# bootclean.sh - Cleans out /tmp, /var/run, and /var/lock -# This script should run after mountall.sh in runlevel S. -# -# This script relies upon find and xargs, and is largely -# based on the equivalent script in the Debian releases. - -. /etc/default/rcS - -# Completely clean out everything in /tmp, but do not walk into -# anything that might be mounted beneath /tmp. If /tmp is not -# a directory, ignore this (it's probably a symlink to -# /var/volatiles/tmp, and we best leave it alone). - -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 . -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 - -# Now clean out /var/lock. - -if [ -d /var/lock -a ! -L /var/lock ] ; then - echo "bootclean.sh: Cleaning /var/lock..." - cd /var/lock || { echo "bootclean.sh: unable to cd to /var/lock." ; return 1 ; } - find . -xdev ! -type d -print0 | xargs -0r rm -f -- -else - echo "bootclean.sh: Skipping /var/lock (not a directory)..." -fi - -# Now clean out /var/run. - -if [ -d /var/run -a ! -L /var/run ] ; then - echo "bootclean.sh: Cleaning /var/run..." - cd /var/run || { echo "bootclean.sh: unable to cd to /var/run." ; return 1 ; } - find . -xdev ! -type d ! -name utmp -print0 | xargs -0r rm -f -- -else - echo "bootclean.sh: Skipping /var/run (not a directory)..." -fi - -# done. - -exit 0 |