Contents of /branches/unlabeled-1.1.1/magellan-initscripts/etc/rc.d/init.d/mountfslivecd
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Mon Dec 13 22:52:07 2004 UTC (19 years, 4 months ago) by niro
File size: 1143 byte(s)
Mon Dec 13 22:52:07 2004 UTC (19 years, 4 months ago) by niro
File size: 1143 byte(s)
imported.
1 | #!/bin/bash |
2 | |
3 | #%rlevels: 7:s 0:k 6:k |
4 | #%start: 40 |
5 | #%stop: 60 |
6 | |
7 | #deps |
8 | #%needs: |
9 | #%before: |
10 | #%after: |
11 | |
12 | source /etc/sysconfig/rc |
13 | source $rc_functions |
14 | |
15 | case "$1" in |
16 | start) |
17 | echo -e ${COLOREDSTAR}"Recording existing mounts in /etc/mtab ..." |
18 | > /etc/mtab |
19 | |
20 | #fake mount rootfs (taken from /.bootdev) |
21 | if [ -e /.bootdev ] |
22 | then |
23 | source /.bootdev |
24 | mount -f ${BOOTDEV} /mnt/cdrom -t ${FSTYPE} -o ro |
25 | #we don't delete this for the alx settings import |
26 | #wanna check if usbstorage or not |
27 | #rm /.bootdev |
28 | fi |
29 | |
30 | #fake mount cloop |
31 | mount -f /mnt/cdrom/livecdrootfs.cloop /mnt/cloop -t ext2 -o ro |
32 | |
33 | #fake mount dev |
34 | mount -f devfs /dev -t devfs -o rw |
35 | |
36 | #fake mount tmpfs |
37 | mount -f tmpfs / -t tmpfs -o rw |
38 | |
39 | #fake mount proc |
40 | mount -f proc /proc -t proc -o rw |
41 | |
42 | evaluate_retval |
43 | |
44 | update_svcstatus $1 |
45 | splash svc_started "$(basename $0)" 0 |
46 | ;; |
47 | |
48 | stop) |
49 | echo -e ${COLOREDSTAR}"Unmounting all other currently mounted file systems ..." |
50 | #umount /dev |
51 | #umount /proc |
52 | #umount / |
53 | #umount -a -r |
54 | evaluate_retval |
55 | |
56 | update_svcstatus $1 |
57 | splash svc_stopped "$(basename $0)" 0 |
58 | ;; |
59 | |
60 | *) |
61 | echo "Usage: $0 {start|stop}" |
62 | exit 1 |
63 | ;; |
64 | esac |
Properties
Name | Value |
---|---|
svn:executable | * |