From: Harald Hoyer Date: Tue, 4 Feb 2014 11:02:05 +0000 (+0100) Subject: network/ifup: do not ifup an already setup network interface X-Git-Tag: 037~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d61a423f7cb326848e952d9e13a8cbf25ca06631;p=thirdparty%2Fdracut.git network/ifup: do not ifup an already setup network interface --- diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh index b33981b22..3a03d0524 100755 --- a/modules.d/40network/ifup.sh +++ b/modules.d/40network/ifup.sh @@ -80,7 +80,11 @@ fi # in netroot case we prefer netroot to bringup $netif automaticlly [ -n "$2" -a "$2" = "-m" ] && [ -z "$netroot" ] && manualup="$2" [ -z "$netroot" ] && [ -z "$manualup" ] && exit 0 -[ -n "$manualup" ] && >/tmp/net.$netif.manualup +if [ -n "$manualup" ]; then + >/tmp/net.$netif.manualup +else + [ -f /tmp/net.${iface}.did-setup ] && exit 0 +fi # Run dhclient do_dhcp() {