diff options
author | Felix Richter <github@syntax-fehler.de> | 2011-05-26 12:35:05 +0200 |
---|---|---|
committer | Felix Richter <github@syntax-fehler.de> | 2011-05-26 12:35:05 +0200 |
commit | 231c96d75699738792e7235dc39b6c5a87e00b83 (patch) | |
tree | d21097ee0496a411233b846332cb0d66664ed5a3 /infest/etc_aggressive | |
parent | 4fa3e59a99b5c526c51366ca952f219f3b6a5674 (diff) | |
parent | b0555ffa2f6fa2f416bbb2a293ebf43846cf0234 (diff) |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'infest/etc_aggressive')
-rwxr-xr-x | infest/etc_aggressive | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/infest/etc_aggressive b/infest/etc_aggressive index d4352fb7..8fa2a570 100755 --- a/infest/etc_aggressive +++ b/infest/etc_aggressive @@ -22,12 +22,10 @@ echo 'krebs:x:0:' >>$f # 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 +if ! grep -q '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 +if ! grep -q 'none[ \t]*/var/log' /etc/fstab; then + echo 'none /var/log tmpfs defaults,size=50M 0 0' >>/etc/fstab fi |