Magellan Linux

Diff of /trunk/initscripts/sysvinit/rc/mountfs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

branches/unlabeled-1.1.1/magellan-initscripts/etc/rc.d/init.d/mountfs revision 2 by niro, Mon Dec 13 22:52:07 2004 UTC trunk/magellan-initscripts/etc/rc.d/init.d/mountfs revision 71 by niro, Tue Mar 15 19:07:56 2005 UTC
# Line 1  Line 1 
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
# Line 29  case "$1" in Line 30  case "$1" in
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   # add /dev above if you use devfs  
   
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
# Line 48  case "$1" in Line 48  case "$1" in
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
# Line 63  case "$1" in Line 63  case "$1" in
63   # below. All file systems that are added to the variable in the   # below. All file systems that are added to the variable in the
64   # form of no<filesystem> will be skipped.   # form of no<filesystem> will be skipped.
65    
  #NO_FS="nonfs,nosmbfs,noproc"  
66   NO_FS="nonfs,nosmbfs,noproc,nocoda,noncpfs,noshm"   NO_FS="nonfs,nosmbfs,noproc,nocoda,noncpfs,noshm"
67   echo -e ${COLOREDSTAR}"Mounting remaining file systems ..."   echo -e ${COLOREDSTAR}"Mounting remaining file systems ..."
68   mount -a -t $NO_FS   mount -a -t $NO_FS

Legend:
Removed from v.2  
changed lines
  Added in v.71