1 |
#!/bin/bash |
#!/bin/bash |
2 |
# $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/mountfs,v 1.10 2007-08-18 13:55:22 niro Exp $ |
# $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/mountfs,v 1.11 2008-03-22 17:54:34 niro Exp $ |
3 |
|
|
4 |
#%rlevels: 7:s 0:k 6:k |
#%rlevels: 7:s 0:k 6:k |
5 |
#%start: 40 |
#%start: 40 |
32 |
elif [ -f /mnt/cdrom/livecdrootfs.cloop ] |
elif [ -f /mnt/cdrom/livecdrootfs.cloop ] |
33 |
then |
then |
34 |
mount -f /mnt/cdrom/livecdrootfs.cloop /mnt/cloop -t ext2 -o ro |
mount -f /mnt/cdrom/livecdrootfs.cloop /mnt/cloop -t ext2 -o ro |
35 |
|
|
36 |
elif [ -f /mnt/cdrom/livecdrootfs.sqsh ] |
elif [ -f /mnt/cdrom/livecdrootfs.sqsh ] |
37 |
then |
then |
38 |
mount -f /mnt/cdrom/livecdrootfs.sqsh /mnt/cloop -t ext2 -o ro |
mount -f /mnt/cdrom/livecdrootfs.sqsh /mnt/cloop -t ext2 -o ro |
49 |
mount -f / && mount -f /proc |
mount -f / && mount -f /proc |
50 |
|
|
51 |
# records devfs as mounted |
# records devfs as mounted |
52 |
if is_fs_mounted devfs |
is_fs_mounted devfs && mount -f -t devfs devfs /dev |
|
then |
|
|
mount -f -t devfs devfs /dev |
|
|
fi |
|
53 |
|
|
54 |
# records devpts as mounted |
# records devpts as mounted |
55 |
if is_fs_mounted devpts |
is_fs_mounted devpts && mount -f -t devpts devpts /dev/pts |
|
then |
|
|
mount -f -t devpts devpts /dev/pts |
|
|
fi |
|
56 |
|
|
57 |
# records sysfs as mounted |
# records sysfs as mounted |
58 |
if is_fs_mounted sysfs |
is_fs_mounted sysfs && mount -f -t sysfs sysfs /sys |
|
then |
|
|
mount -f -t sysfs sysfs /sys |
|
|
fi |
|
59 |
|
|
60 |
# records udev as mounted |
# records udev as mounted |
61 |
if is_fs_mounted udev |
if is_fs_mounted udev |
68 |
fi |
fi |
69 |
|
|
70 |
# records usbfs as mounted |
# records usbfs as mounted |
71 |
if is_fs_mounted usbfs |
is_fs_mounted usbfs && mount -f -t usbfs usbfs /proc/bus/usb |
|
then |
|
|
mount -f -t usbfs usbfs /proc/bus/usb |
|
|
fi |
|
72 |
|
|
73 |
evaluate_retval |
evaluate_retval |
74 |
|
|
77 |
# cannot be mounted at this time, add them to the NO_FS variable |
# cannot be mounted at this time, add them to the NO_FS variable |
78 |
# below. All file systems that are added to the variable in the |
# below. All file systems that are added to the variable in the |
79 |
# form of no<filesystem> will be skipped. |
# form of no<filesystem> will be skipped. |
|
|
|
80 |
NO_FS="nonfs,nosmbfs,noproc,nocoda,noncpfs,noshm" |
NO_FS="nonfs,nosmbfs,noproc,nocoda,noncpfs,noshm" |
81 |
echo -e ${COLOREDSTAR}"Mounting remaining file systems ..." |
echo -e ${COLOREDSTAR}"Mounting remaining file systems ..." |
82 |
mount -a -t $NO_FS |
mount -a -t $NO_FS |