Return to rc.subr CVS log | Up to [cvs.NetBSD.org] / src / etc |
Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
version 1.5, 1998/02/28 22:56:11 | version 1.6, 1999/03/24 18:59:47 | ||
---|---|---|---|
|
|
||
;; | ;; | ||
esac | esac | ||
} | } | ||
# | |||
# mount_critical_filesystems | |||
# Go through the list of critical filesystems, checking each one | |||
# to see if it is mounted, and if it is not, mounting it. | |||
# | |||
mount_critical_filesystems() { | |||
for fs in /usr /var $critical_filesystems; do | |||
mount | ( | |||
ismounted=no | |||
while read what _on on _type type; do | |||
if [ $on = $fs ]; then | |||
ismounted=yes | |||
fi | |||
done | |||
if [ $ismounted = no ]; then | |||
mount $fs >/dev/null 2>&1 | |||
fi | |||
) | |||
done | |||
} |