X-Git-Url: http://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=linuxrc;h=10e677ec4678a37c372a358302ae8bcf8d43b248;hb=5d574dda6739f771891b3bc5be9c3283320ac36f;hp=e9d5629fa515e36a52ff80f7ccbd23801995a0a7;hpb=c8a717dfbc6781804fa40bd11d53fcb53dc40d19;p=grml-terminalserver.git diff --git a/linuxrc b/linuxrc index e9d5629..10e677e 100755 --- a/linuxrc +++ b/linuxrc @@ -549,7 +549,12 @@ if [ -n "$NFS" ]; then # loading additional modules modLoad sunrpc lockd af_packet nfs - for INTERFACE in `ifconfig -a | grep '^eth' | sed 's/\ .*//'` ; do + 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"