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

9 lines
106 B
Bash
Raw Normal View History

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