[BACK]Return to rc.subr CVS log [TXT][DIR] 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.

Diff for /src/etc/rc.subr between version 1.5 and 1.6

version 1.5, 1998/02/28 22:56:11 version 1.6, 1999/03/24 18:59:47
Line 26  checkyesno() {
Line 26  checkyesno() {
                 ;;                  ;;
         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
   }

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

CVSweb <webmaster@jp.NetBSD.org>