mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
ipsec: Log a message when an interface could not be created
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -84,7 +84,10 @@ main() {
|
|||||||
# Create a new interface and bring it up
|
# Create a new interface and bring it up
|
||||||
else
|
else
|
||||||
log "Creating interface ${intf}"
|
log "Creating interface ${intf}"
|
||||||
ip link add name "${intf}" type "${interface_mode}" "${args[@]}"
|
if ! ip link add name "${intf}" type "${interface_mode}" "${args[@]}"; then
|
||||||
|
log "Could not create interface ${intf}"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add an IP address
|
# Add an IP address
|
||||||
|
|||||||
Reference in New Issue
Block a user