xiringuito/scripts/linux/client-teardown.sh
2017-02-17 09:27:25 +01:00

11 lines
167 B
Bash
Executable File

#!/usr/bin/env bash
#
# Teardown client after disconnection
#
if [[ ${#} != 1 ]]; then
echo "Usage: ${0} TUNNEL_ID"
exit 1
fi
sudo ip tuntap del mode tun tun${1}