Annotation of /trunk/initscripts/sysvinit/rc/cleanfs
Parent Directory | Revision Log
Revision 1892 -
(hide annotations)
(download)
Wed Aug 22 17:56:31 2012 UTC (12 years, 1 month ago) by niro
File size: 732 byte(s)
Wed Aug 22 17:56:31 2012 UTC (12 years, 1 month ago) by niro
File size: 732 byte(s)
-/tmp /run and /var/lock are now mounted with tmpfs
1 | niro | 1360 | #!/bin/sh |
2 | # $Header: /home/cvsd/magellan-cvs/magellan-src/busybox-initscripts/rc/cleanfs,v 1.2 2008-06-10 22:23:30 niro Exp $ | ||
3 | niro | 2 | |
4 | #%rlevels: 7:s | ||
5 | #%start: 50 | ||
6 | #%stop: | ||
7 | |||
8 | #deps | ||
9 | #%needs: | ||
10 | #%before: | ||
11 | #%after: | ||
12 | |||
13 | niro | 781 | source /etc/conf.d/rc |
14 | source ${rc_functions} | ||
15 | niro | 2 | |
16 | niro | 1360 | case "$1" in |
17 | start) | ||
18 | niro | 1665 | rc_print "Creating new /run/utmp ..." |
19 | touch /run/utmp && chmod 644 /run/utmp | ||
20 | niro | 1360 | evaluate_retval |
21 | niro | 2 | |
22 | niro | 1665 | rc_print "Creating new /var/log/wtmp ..." |
23 | niro | 1360 | touch /var/log/wtmp && chmod 644 /var/log/wtmp |
24 | evaluate_retval | ||
25 | niro | 47 | |
26 | niro | 1360 | rc_print "Removing possible /etc/nologin /fastboot and /forcefsck ..." |
27 | rm -f /etc/nologin /fastboot /forcefsck | ||
28 | evaluate_retval | ||
29 | niro | 2 | |
30 | niro | 1360 | update_svcstatus $1 |
31 | splash svc_started "$(basename $0)" 0 | ||
32 | ;; | ||
33 | |||
34 | *) | ||
35 | rc_echo "Usage: $0 {start}" | ||
36 | exit 1 | ||
37 | ;; | ||
38 | esac |
Properties
Name | Value |
---|---|
svn:executable | * |