9 lines
106 B
Bash
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
|