slitaz-boot-scripts rev 94

Clean /tmp and pid file in cas of brutal poweroff
author Christophe Lincoln <pankso@slitaz.org>
date Fri Jun 06 23:26:27 2008 +0200 (2008-06-06)
parents 79fc62b090f8
children d76432221c42
files etc/init.d/rcS
line diff
     1.1 --- a/etc/init.d/rcS	Wed May 28 14:23:50 2008 +0200
     1.2 +++ b/etc/init.d/rcS	Fri Jun 06 23:26:27 2008 +0200
     1.3 @@ -124,8 +124,8 @@
     1.4  # Clean up the system.
     1.5  if [ "$CLEAN_UP_SYSTEM" = "yes" ]; then
     1.6  	echo -n "Cleaning up the system... "
     1.7 -	rm -rf /tmp/*
     1.8 -	rm -f /var/run/*.pid
     1.9 +	rm -rf /tmp/* /tmp/.*
    1.10 +	rm -f /var/run/*.pid /var/run/dbus/* /var/run/hald/pid
    1.11  	rm -f /var/lock/*
    1.12  	status
    1.13  else