Magellan Linux

Diff of /trunk/magellan-initscripts/etc/rc.d/init.d/mountfs

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

revision 13 by niro, Mon Dec 13 23:46:52 2004 UTC 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    
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 47  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

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