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 519 by niro, Fri Aug 17 22:39:47 2007 UTC revision 520 by niro, Sat Aug 18 13:55:22 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.9 2007-08-17 22:39:47 niro Exp $  # $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 $
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/mounts | grep ${filesys} | cut -d ' ' -f3)"   udev_fstype="$(cat /proc/mounts | grep udev | cut -d ' ' -f3)"
74   # get the right mount opts - udev with tmpfs comes nosuid   # get the right mount opts - udev with tmpfs comes nosuid
75   udev_mopts="$(cat /proc/mounts | grep ${filesys} | cut -d ' ' -f4)"   udev_mopts="$(cat /proc/mounts | grep udev | cut -d ' ' -f4)"
76   mount -f -t ${udev_fstype} -o ${udev_mopts} udev /dev   mount -f -t ${udev_fstype} -o ${udev_mopts} udev /dev
77   fi   fi
78    

Legend:
Removed from v.519  
changed lines
  Added in v.520