network/ifup.sh:do_static(): error out, if interface could not be brought up
parent
d9b5a98532
commit
77f46adf5e
|
|
@ -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…
Reference in New Issue