X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=linuxrc;h=10e677ec4678a37c372a358302ae8bcf8d43b248;hb=5d574dda6739f771891b3bc5be9c3283320ac36f;hp=d145c92312fb08180f0860bbf39d3e93ec68b165;hpb=941a09ddcea97e62bb737c0a3c570eebbb441081;p=grml-terminalserver.git diff --git a/linuxrc b/linuxrc index d145c92..10e677e 100755 --- a/linuxrc +++ b/linuxrc @@ -392,7 +392,7 @@ if test -z "$NOUSB"; then if test -f /modules/div/usbcore.ko; then $INSMOD /modules/div/usbcore.ko >/dev/null 2>&1 FOUNDUSB="" - for i in $USB2 uhci-hcd.ko ohci-hcd.ko ; do + for i in $USB2 uhci-hcd.ko ohci-hcd.ko usbhid.ko ; do test -f /modules/div/$i && $INSMOD /modules/div/$i >/dev/null 2>&1 && FOUNDUSB="yes" done if test -n "$FOUNDUSB"; then @@ -526,7 +526,7 @@ if [ -n "$NFS" ]; then KERNELVER=`uname -r` for mod in `find /lib/modules/$KERNELVER/kernel/drivers/net/ -name \*.ko` ; do - echo `basename $mod | tr -d \.ko` >> /modules.load + echo `basename $mod | sed -e 's/\.ko$//'` >> /modules.load done modules_to_load=`cat /modules.load | xargs` @@ -549,10 +549,17 @@ if [ -n "$NFS" ]; then # loading additional modules modLoad sunrpc lockd af_packet nfs - log_begin_msg "Requesting network configuration using udhcp:" ; echo - /static/udhcpc --foreground --quit --script=/static/udhcp-config.sh - #echo "press to start a system shell and configure your system" - #sh + 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 to start a system shell and configure your system" + # sh + done # recreate the old dir structures rdir