summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Suchanek <hramrach@centrum.cz>2010-06-04 09:24:28 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:53:26 +0100
commit762405f8bac3e19efe419aebf371be168aacf8cd (patch)
tree5caf23fc0598c5b877545e3b5c1062ffe6118bcb
parenta2b39cca5a3e08d50f260ea985a1cd53625c45cd (diff)
downloadlive-boot-762405f8bac3e19efe419aebf371be168aacf8cd.tar.gz
live-boot-762405f8bac3e19efe419aebf371be168aacf8cd.zip
Adding DHCP debugging option.
-rwxr-xr-xscripts/live11
-rwxr-xr-xscripts/live-bottom/23networking2
2 files changed, 12 insertions, 1 deletions
diff --git a/scripts/live b/scripts/live
index 753fceb..5c6a82e 100755
--- a/scripts/live
+++ b/scripts/live
@@ -85,6 +85,17 @@ Arguments ()
set -x
;;
+ dhcp)
+ # Force dhcp even while netbooting
+ # Use for debugging in case somebody works on fixing dhclient
+ DHCP="Force";
+ export DHCP
+ ;;
+
+ nodhcp)
+ unset DHCP
+ ;;
+
ethdevice=*)
DEVICE="${ARGUMENT#ethdevice=}"
export DEVICE
diff --git a/scripts/live-bottom/23networking b/scripts/live-bottom/23networking
index d73f63b..871d8c0 100755
--- a/scripts/live-bottom/23networking
+++ b/scripts/live-bottom/23networking
@@ -71,7 +71,7 @@ EOF
done
else
- if [ -z "${NETBOOT}" ]
+ if [ -z "${NETBOOT}" ] || [ -n "${DHCP}" ]
then
# default, dhcp assigned
method="dhcp"