-# NFS
-if checkbootparam "nfsdir" ; then
- NFS="$(getbootparam nfsdir)"
-# if test -z $NFS
-# then
-# NFS=192.168.0.1
-# echo "${CRE}${BLUE}No NFS-server given, assuming default $NFS${NORMAL}"
-# fi
- echo "${RED}Debug: NFS = ${NFS}${NORMAL}"
- log_begin_msg "${CRE} ${GREEN}*${NORMAL} Looking for CD-ROM in: ${MAGENTA}$NFS${NORMAL}"
- if mountit -t nfs $NFS "-o ro" >/dev/null 2>&1
+if [ -n "$NFS" ]; then
+ tmp_="$(getbootparam nfsdir)"
+ log_begin_msg "Bootoption NFS found." ; echo "$SUCCESS"
+
+ cdir
+
+ # FIXME modprobe is buggy from busybox
+ log_begin_msg "Trying to load network driver(s)." ; echo
+ modLoad()
+ {
+ for mod in $@ ; do
+ tmp_="`modprobe -vn $mod 2>/dev/null`"
+ if [ $? -ne 0 ]; then
+ continue
+ fi
+ echo "$tmp_" | while read i; do
+ # be quiet by default, be verbose only with bootoption debuglinuxrc
+ [ -n "$DEBUG" ] && eval "$i" || eval "$i" 1>/dev/null 2>/dev/null
+ done
+ done
+ }
+ # modules.alias and modules.dep are in place so USE IT :)!
+ modLoad "$(for x in $(find /sys/devices/ -name modalias); do grep pci: $x; done |xargs)"
+
+ # loading additional modules
+ modLoad sunrpc lockd af_packet nfs
+
+ dhcp_iface_=$(getbootparam dhcp_iface)
+ if [ -z "$dhcp_iface_" ]; then
+ dhcp_iface_=`ifconfig -a | grep '^eth' | sed 's/ .*//'`
+ fi
+
+ for INTERFACE in $dhcp_iface_ ; do
+ log_begin_msg "Requesting network configuration using udhcp for ${INTERFACE}:" ; echo
+ /static/timeout 10 /static/udhcpc --interface="${INTERFACE}" --foreground --quit --script=/static/udhcp-config.sh
+ # echo "press <enter> to start a system shell and configure your system"
+ # sh
+ done
+
+ # recreate dir layout + remove extra modules
+ rdir
+ #rm -rf /mylib
+
+ log_begin_msg "Looking for GRML in: ${MAGENTA}$NFS${NORMAL}" ; echo "$SUCCESS"
+ if mount -t nfs "$NFS" -o "async,ro,nolock" /cdrom #>/dev/null 2>&1