ansible-edda/plays/vpn/roles/base/files/ip-link-add.sh

9 lines
106 B
Bash
Raw Normal View History

2022-12-08 23:27:25 +01:00
#!/usr/bin/env bash
set -u
if ! ip link show dev "${1}" > /dev/null 2>&1
then
ip link add "${@}"
fi