# Paramter: Where the root should be mounted mountroot () { run_scripts /scripts/nfs-top modprobe nfs # For DHCP modprobe af_packet ipconfig ${DEVICE} . /tmp/net-${DEVICE}.conf if [ "x${NFSROOT}" = "xauto" ]; then NFSROOT=${ROOTSERVER}:${ROOTPATH} fi run_scripts /scripts/nfs-premount if [ ${readonly} = y ]; then roflag="-o ro" else roflag="-o rw" fi nfsmount ${roflag} ${NFSROOT} ${rootmnt} run_scripts /scripts/nfs-bottom }