Contents of /trunk/initscripts/sysvinit/rc/cleanfs
Parent Directory | Revision Log
Revision 1892 -
(show 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 | #!/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 | |
4 | #%rlevels: 7:s |
5 | #%start: 50 |
6 | #%stop: |
7 | |
8 | #deps |
9 | #%needs: |
10 | #%before: |
11 | #%after: |
12 | |
13 | source /etc/conf.d/rc |
14 | source ${rc_functions} |
15 | |
16 | case "$1" in |
17 | start) |
18 | rc_print "Creating new /run/utmp ..." |
19 | touch /run/utmp && chmod 644 /run/utmp |
20 | evaluate_retval |
21 | |
22 | rc_print "Creating new /var/log/wtmp ..." |
23 | touch /var/log/wtmp && chmod 644 /var/log/wtmp |
24 | evaluate_retval |
25 | |
26 | rc_print "Removing possible /etc/nologin /fastboot and /forcefsck ..." |
27 | rm -f /etc/nologin /fastboot /forcefsck |
28 | evaluate_retval |
29 | |
30 | 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 | * |