From: Harald Hoyer Date: Tue, 10 Sep 2013 08:49:51 +0000 (+0200) Subject: network/ifup.sh: ifup with dhcp, if no ip= params specified X-Git-Tag: 033~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=debf483d4d54f92684cf9a1ddc27bf0c0e53fc06;p=thirdparty%2Fdracut.git network/ifup.sh: ifup with dhcp, if no ip= params specified --- diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh index f9e16694f..32616470c 100755 --- a/modules.d/40network/ifup.sh +++ b/modules.d/40network/ifup.sh @@ -333,6 +333,12 @@ for p in $(getargs ip=); do ;; esac - break + exit 0 done + +# no ip option directed at our interface? +if [ ! -e /tmp/setup_net_${netif}.ok ]; then + do_dhcp -4 +fi + exit 0