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 |
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 |
|
|