Magellan Linux

Annotation of /branches/unlabeled-1.1.1/magellan-initscripts/etc/rc.d/init.d/cleanfs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations) (download)
Mon Dec 13 22:52:07 2004 UTC (19 years, 5 months ago) by niro
File size: 710 byte(s)
imported.

1 niro 2 #!/bin/bash
2    
3     #%rlevels: 7:s
4     #%start: 50
5     #%stop:
6    
7     #deps
8     #%needs:
9     #%before:
10     #%after:
11    
12     source /etc/sysconfig/rc
13     source $rc_functions
14    
15     echo -e ${COLOREDSTAR}"Removing /var/run/* and /var/lock/* ..."
16     for i in /var/run/*
17     do
18     if [ -d ${i} ]
19     then
20     rm -rf ${i}/*
21     else
22     rm -f ${i}
23     fi
24     done
25    
26     for i in /var/lock/*
27     do
28     if [ -d ${i} ]
29     then
30     rm -rf ${i}/*
31     else
32     rm -f ${i}
33     fi
34     done
35     evaluate_retval
36    
37     echo -e ${COLOREDSTAR}"Creating new /var/run/utmp ..."
38     touch /var/run/utmp && chmod 644 /var/run/utmp
39     evaluate_retval
40    
41     echo -e ${COLOREDSTAR}"Removing possible /etc/nologin /fastboot and /forcefsck ..."
42     rm -f /etc/nologin /fastboot /forcefsck
43     evaluate_retval
44    
45     update_svcstatus $1
46     splash svc_started "$(basename $0)" 0

Properties

Name Value
svn:executable *