summaryrefslogtreecommitdiff
path: root/auto/clean
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2010-09-06 04:35:26 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2010-09-06 04:35:26 +0200
commit6a889c01a73b48882c481d23f2b05d9000f56f2f (patch)
treea1d28312aca72cb073a6b2ce3db7865e2fcd125c /auto/clean
parentac89baf038cdb9d9abfeb439b81562078a573604 (diff)
downloadkanotix-6a889c01a73b48882c481d23f2b05d9000f56f2f.zip
kanotix-6a889c01a73b48882c481d23f2b05d9000f56f2f.tar.gz
changed the auto/*-scripts, added additional kanotix arguments
this replaces the old tmpfs.disabled directory, therefor it is removed
Diffstat (limited to 'auto/clean')
-rwxr-xr-xauto/clean46
1 files changed, 36 insertions, 10 deletions
diff --git a/auto/clean b/auto/clean
index fb261dd..c4f0846 100755
--- a/auto/clean
+++ b/auto/clean
@@ -3,7 +3,11 @@
rm -f build.log
# Remove generated files
-rm -f config/binary config/bootstrap config/chroot config/common config/source
+rm -f config/binary config/bootstrap config/chroot config/common config/source config/kanotix
+if [ -f config/all ]; then
+ sed -i '/^. config\/kanotix/d' config/all
+ [ ! -s config/all ] && rm -f config/all
+fi
# remove kanotix-scripts
grep -oe '^[^ #]*' scripts.urls | grep -oe '[^/]*$' | xargs -i rm -f config/chroot_local-includes/usr/local/bin/{}
@@ -19,13 +23,35 @@ then
rmdir --ignore-fail-on-non-empty config
fi
-# umount tmpfs
-if [ -e tmpfs ]; then
- case "$1" in
- --tmpfs|--all)
- [ "$(stat --printf "%d\n" . tmpfs | uniq -u)" ] && umount tmpfs;;
- esac
- [ "$1" = "--tmpfs" ] && exit 1
-fi
+# handle additional kanotix parameters
+while [ "$1" ]
+do
+ case "$1" in
+ --help)
+ lh clean noauto --help
+ echo -e "\nAdditional Options for Kanotix:\n\t[--tmpfs]\n"
+ exit 1
+ ;;
+ --all)
+ if [ -d tmpfs ]; then
+ [ "$(stat --printf "%d\n" . tmpfs | uniq -u)" ] && umount tmpfs
+ rmdir tmpfs
+ fi
+ lh clean noauto --all
+ exit 1
+ ;;
+ --tmpfs)
+ if [ -d tmpfs ]; then
+ [ "$(stat --printf "%d\n" . tmpfs | uniq -u)" ] && umount tmpfs
+ rmdir tmpfs
+ fi
+ ;;
+ *)
+ lh clean noauto "$1"
+ ;;
+ esac
+ shift
+done
+
+exit 1
-exit 0