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 517 by niro, Fri Aug 17 22:06:35 2007 UTC revision 518 by niro, Fri Aug 17 22:39:47 2007 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.8 2007-08-17 22:06:35 niro Exp $  # $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/mountfs,v 1.9 2007-08-17 22:39:47 niro Exp $
3    
4  #%rlevels: 7:s 0:k 6:k  #%rlevels: 7:s 0:k 6:k
5  #%start: 40  #%start: 40
# Line 70  case "$1" in Line 70  case "$1" in
70   if is_fs_mounted udev   if is_fs_mounted udev
71   then   then
72   # get the fstype of udev - it may be ramfs or tmpfs   # get the fstype of udev - it may be ramfs or tmpfs
73   udev_fstype="$(cat /proc/filesystems | grep ${filesys} | cut -d $'\t' -f3)"   udev_fstype="$(cat /proc/mounts | grep ${filesys} | cut -d ' ' -f3)"
74   mount -f -t ${udev_fstype} udev /dev   # get the right mount opts - udev with tmpfs comes nosuid
75     udev_mopts="$(cat /proc/mounts | grep ${filesys} | cut -d ' ' -f4)"
76     mount -f -t ${udev_fstype} -o ${udev_mopts} udev /dev
77   fi   fi
78    
79   # records usbfs as mounted   # records usbfs as mounted

Legend:
Removed from v.517  
changed lines
  Added in v.518