components/9990-cmdline-old: sync with Debian
[live-boot-grml.git] / components / 9990-cmdline-old
index a195e3e..068eea5 100755 (executable)
@@ -33,13 +33,12 @@ Cmdline_old ()
                        nodhcp)
                                DHCP=""
                                export DHCP
-                               NODHCP="Yes"
-                               export NODHCP
                                ;;
 
                        ethdevice=*)
-                               ETHDEVICE="${_PARAMETER#ethdevice=}"
-                               export ETHDEVICE
+                               DEVICE="${_PARAMETER#ethdevice=}"
+                               ETHDEVICE="${DEVICE}"
+                               export DEVICE ETHDEVICE
                                ;;
 
                        ethdevice-timeout=*)
@@ -99,6 +98,12 @@ Cmdline_old ()
                                # copy complete ip=args into staticip, and
                                # keep multiple uses.
                                STATICIP="${STATICIP} ${_PARAMETER}"
+
+                               if [ -z "${STATICIP}" ]
+                               then
+                                       STATICIP="frommedia"
+                               fi
+
                                export STATICIP
                                ;;