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

9 lines
106 B
Bash

#!/usr/bin/env bash
set -u
if ! ip link show dev "${1}" > /dev/null 2>&1
then
ip link add "${@}"
fi