summaryrefslogtreecommitdiffstats
path: root/infest
diff options
context:
space:
mode:
Diffstat (limited to 'infest')
-rwxr-xr-xinfest/etc12
1 files changed, 12 insertions, 0 deletions
diff --git a/infest/etc b/infest/etc
index 0ddf4150..78ce8d06 100755
--- a/infest/etc
+++ b/infest/etc
@@ -32,3 +32,15 @@ echo 'krebs:x:0:' >>$f
for i in etc/*; do
cat $i > /$i
done
+
+# TMPFS for tmp and log
+
+if [ ! "`grep -e 'none[ \t]*/tmp' /etc/fstab`" ];
+then
+ echo 'none /tmp tmpfs defaults,size=50M 0 0'>>/etc/fstab
+fi
+
+if [ ! "`grep -e 'none[ \t]*/var/log' /etc/fstab`" ];
+then
+ echo 'none /var/log tmpfs defaults,size=50M 0 0'>>/etc/fstab
+fi