Magellan Linux

Diff of /trunk/initscripts/sysvinit/rc/cleanfs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1664 by niro, Sat Jun 4 21:59:16 2011 UTC revision 1665 by niro, Fri Jan 20 23:01:04 2012 UTC
# Line 15  source ${rc_functions} Line 15  source ${rc_functions}
15    
16  case "$1" in  case "$1" in
17   start)   start)
18   for dir in /tmp /var/run /var/lock   for dir in /tmp /run /var/lock
19   do   do
20     [ -d ${dir} ] || continue
21   rc_print "Removing tmp files in ${dir}/ ..."   rc_print "Removing tmp files in ${dir}/ ..."
22   for file in $(find ${dir} -type f)   for file in $(find ${dir} -type f)
23   do   do
# Line 31  case "$1" in Line 32  case "$1" in
32   evaluate_retval   evaluate_retval
33   done   done
34    
35   rc_print "Creating new /var/run/utmp ..."   rc_print "Creating new /run/utmp ..."
36   touch /var/run/utmp && chmod 644 /var/run/utmp   touch /run/utmp && chmod 644 /run/utmp
37   evaluate_retval   evaluate_retval
38    
39   rc_print "Creating new /var/run/wtmp ..."   rc_print "Creating new /var/log/wtmp ..."
40   touch /var/log/wtmp && chmod 644 /var/log/wtmp   touch /var/log/wtmp && chmod 644 /var/log/wtmp
41   evaluate_retval   evaluate_retval
42    

Legend:
Removed from v.1664  
changed lines
  Added in v.1665