mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +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
|
||||
else
|
||||
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
|
||||
|
||||
# Add an IP address
|
||||
|
||||
Reference in New Issue
Block a user