diff options
author | Olav Vitters <olav@vitters.nl> | 2013-10-15 23:17:45 +0200 |
---|---|---|
committer | Olav Vitters <olav@vitters.nl> | 2013-10-15 23:17:45 +0200 |
commit | 423b437e3d29673dfad4051515506e6d711d20e6 (patch) | |
tree | 988122fb1dfb41163e8c696520f01947bb7859f6 | |
parent | e1de1e19a46876c1df2c29b7acfbcaab93b2cca4 (diff) | |
download | initscripts-423b437e3d29673dfad4051515506e6d711d20e6.tar initscripts-423b437e3d29673dfad4051515506e6d711d20e6.tar.gz initscripts-423b437e3d29673dfad4051515506e6d711d20e6.tar.bz2 initscripts-423b437e3d29673dfad4051515506e6d711d20e6.tar.xz initscripts-423b437e3d29673dfad4051515506e6d711d20e6.zip |
Remove cleaning /tmp support as /tmp is on tmpfs by default
-rw-r--r-- | mandriva/mandrake_everytime | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/mandriva/mandrake_everytime b/mandriva/mandrake_everytime index 5673c4ee..d7fe5795 100644 --- a/mandriva/mandrake_everytime +++ b/mandriva/mandrake_everytime @@ -7,25 +7,6 @@ [ -e /etc/sysconfig/system ] && . /etc/sysconfig/system -#Clean up Tmp. -if [ -n "$CLEAN_TMP" ] && [ "$CLEAN_TMP" -ge 1 ];then - ( - TEXPR="! -ctime -$CLEAN_TMP" - echo -n "Clean-up /tmp directory: " - cd /tmp && \ - find . -xdev -depth \ - $TEXPR \ - ! -name . \ - ! \( -name lost+found -uid 0 \) \ - ! \( -name quota.user -uid 0 \) \ - ! \( -name quota.group -uid 0 \) \ - -print | while read i; do [ -d "$i" ] && rmdir "$i" 2>/dev/null ; rm -f "$i" 2>/dev/null; done - if [ "$?" = "0" ];then echo_success;else echo_failure;fi - echo - ) -fi - - # Globetrotter support: if [ -x /usr/share/harddrake/hwprofile ]; then action "Starting %s: " Globetrotter /usr/share/harddrake/hwprofile |