Adding DHCP debugging option.
authorMichal Suchanek <hramrach@centrum.cz>
Fri, 4 Jun 2010 07:24:28 +0000 (09:24 +0200)
committerDaniel Baumann <daniel@debian.org>
Wed, 9 Mar 2011 16:53:26 +0000 (17:53 +0100)
scripts/live
scripts/live-bottom/23networking

index 753fceb..5c6a82e 100755 (executable)
@@ -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
index d73f63b..871d8c0 100755 (executable)
@@ -71,7 +71,7 @@ EOF
 
        done
 else
-       if [ -z "${NETBOOT}" ]
+       if [ -z "${NETBOOT}" ] || [ -n "${DHCP}" ]
        then
                # default, dhcp assigned
                method="dhcp"