+# Load global network parameters
+source /etc/sysconfig/network/network-parameters
+
+# Make sure networking is up. If not, this bootscript will wait forever
+if [ ! -f "${NETWORKING_UP_FILE}" ]; then
+ msg_log "${0}: Network is down"
+ exit ${EXIT_CODE_WARNING}
+fi
+
+mountnetfs_start() {
+ if ! grep -q "_netdev" /etc/fstab; then
+ msg_log "No network filesystem found in fstab"
+ exit ${EXIT_CODE_SUCCESS}
+ fi
+
+ if grep -q "nfs" /etc/fstab; then
+ # rpc.statd is required to mount nfs shares
+ if [ ! -x /sbin/rpc.statd ]; then
+ msg_log "Missing rpc.statd executable"
+ exit ${EXIT_CODE_WARNING}
+ fi
+
+ if ! statusproc rpc.statd | grep -q "running"; then
+ cmd_run_log_box "Starting rpc.statd" loadproc rpc.statd
+ fi
+ fi
+
+ # Walk through /etc/fstab and mount all file systems that have the
+ #_netdev option set in the fs_mntops field (the 4th field. See man
+ # fstab for more info).
+ cmd_run_log_box "Mounting network file systems" mount -a -O _netdev
+}
+