1 |
#!/bin/bash |
#!/bin/bash |
2 |
|
# $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/mountfs,v 1.3 2005-03-15 19:07:56 niro Exp $ |
3 |
|
|
4 |
#%rlevels: 7:s 0:k 6:k |
#%rlevels: 7:s 0:k 6:k |
5 |
#%start: 40 |
#%start: 40 |
30 |
echo -e ${COLOREDSTAR}"Recording existing mounts in /etc/mtab ..." |
echo -e ${COLOREDSTAR}"Recording existing mounts in /etc/mtab ..." |
31 |
> /etc/mtab |
> /etc/mtab |
32 |
mount -f / && mount -f /proc |
mount -f / && mount -f /proc |
33 |
|
|
34 |
#records devfs if mounted |
#records devfs if mounted |
35 |
if [ "$(get_mounted devfs)" == devfs ] |
if [ "$(get_mounted devfs)" == devfs ] |
36 |
then |
then |
37 |
mount -f -t devfs none /dev |
mount -f -t devfs none /dev |
38 |
fi |
fi |
39 |
|
|
40 |
#records devpts if mounted |
#records devpts if mounted |
41 |
if [ "$(get_mounted devpts)" == devpts ] |
if [ "$(get_mounted devpts)" == devpts ] |
42 |
then |
then |
48 |
then |
then |
49 |
mount -f -t sysfs none /sys |
mount -f -t sysfs none /sys |
50 |
fi |
fi |
51 |
|
|
52 |
#records udev's ramfs if mounted |
#records udev's ramfs if mounted |
53 |
if [ "$(get_mounted ramfs)" == ramfs ] |
if [ "$(get_mounted ramfs)" == ramfs ] |
54 |
then |
then |