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

Harald Hoyer 2015-08-19 13:59:40 +02:00
parent d9b5a98532
commit 77f46adf5e
1 changed files with 5 additions and 1 deletions

View File

@ -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