]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network/ifup.sh:do_static(): error out, if interface could not be brought up
authorHarald Hoyer <harald@redhat.com>
Wed, 19 Aug 2015 11:59:40 +0000 (13:59 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 19 Aug 2015 11:59:40 +0000 (13:59 +0200)
modules.d/40network/ifup.sh

index 8a5a6065196d74e82bdf2124420e5383397ddbef..1ee89bf48e0b3e97380209086d8a6545a46e9df9 100755 (executable)
@@ -155,7 +155,11 @@ do_ipv6auto() {
 do_static() {
     strstr $ip '*:*:*' && load_ipv6
 
-    linkup $netif
+    if ! linkup $netif; then
+        warn "Could bring interface $netif up!"
+        return 1
+    fi
+
     [ -n "$macaddr" ] && ip link set address $macaddr dev $netif
     [ -n "$mtu" ] && ip link set mtu $mtu dev $netif
     if strstr $ip '*:*:*'; then