From 3c9613e61b6b4b0b2badcc01e220bae279b900a1 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 21 Nov 2006 00:23:55 +0100 Subject: [PATCH] Support bootoption dhcp_iface via /linuxrc for selection of network device, thanks for the patch - Wolfgang Karall! --- debian/changelog | 7 +++++++ linuxrc | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 10a3236..7a3bf35 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +grml-terminalserver (0.76) unstable; urgency=low + + * Support bootoption dhcp_iface via /linuxrc for selection of + network device, thanks for the patch - Wolfgang Karall! + + -- Michael Prokop Tue, 21 Nov 2006 00:22:51 +0100 + grml-terminalserver (0.75) unstable; urgency=low * Support usbhid module in /linuxrc. 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" -- 2.1.4