diff options
author | krebs <krebs@UTART> | 2011-05-18 11:01:23 +0200 |
---|---|---|
committer | krebs <krebs@UTART> | 2011-05-18 11:01:23 +0200 |
commit | 86cf52c3fdcfe6cf7e4827eb77561f8f1854327a (patch) | |
tree | 9c37aff37193629758a6e89a21e323cc31d8996f | |
parent | 023130e949d6287404c80e4e4fc75e417743af33 (diff) |
added tmpfs for /tmp and /var/log in infest/etc
-rwxr-xr-x | infest/etc | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |