aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build9
-rw-r--r--scripts/clean.sh5
2 files changed, 7 insertions, 7 deletions
diff --git a/build b/build
index 49d2f2e..1dca94e 100644
--- a/build
+++ b/build
@@ -20,20 +20,15 @@ log stamp
runscript initrc.sh
runscript passwd.sh
+runscript clean.sh
unmount
-clean
kernel
log stamp
-log Tar_it
+log Tar+Hash
log stamp
tarit
-
-log stamp
-log Hash_it
-log stamp
-
hashit
+log stamp
diff --git a/scripts/clean.sh b/scripts/clean.sh
new file mode 100644
index 0000000..0424c9d
--- /dev/null
+++ b/scripts/clean.sh
@@ -0,0 +1,5 @@
+#!/bin/bash -e
+
+for d in /tmp /var/tmp /var/log; do
+ find ${d} -mindepth 1 -exec rm -rf {} +
+rm -rf /etc/resolv.con