* no longer export NODHCP (seems to be unused)
* ethdevice boot option: also export DEVICE variable
* if STATICIP is unset then default to STATICIP="frommedia"
nodhcp)
DHCP=""
export DHCP
- NODHCP="Yes"
- export NODHCP
;;
ethdevice=*)
- ETHDEVICE="${_PARAMETER#ethdevice=}"
- export ETHDEVICE
+ DEVICE="${_PARAMETER#ethdevice=}"
+ ETHDEVICE="${DEVICE}"
+ export DEVICE ETHDEVICE
;;
ethdevice-timeout=*)
# copy complete ip=args into staticip, and
# keep multiple uses.
STATICIP="${STATICIP} ${_PARAMETER}"
+
+ if [ -z "${STATICIP}" ]
+ then
+ STATICIP="frommedia"
+ fi
+
export STATICIP
;;