Browse Source

network/ifup.sh:do_static(): error out, if interface could not be brought up

Harald Hoyer 10 years ago
parent
commit
77f46adf5e
  1. 6
      modules.d/40network/ifup.sh

6
modules.d/40network/ifup.sh

@ -155,7 +155,11 @@ do_ipv6auto() { @@ -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

Loading…
Cancel
Save