xiringuito/scripts/client-teardown.sh
2017-02-05 22:24:30 +01:00

13 lines
175 B
Bash
Executable File

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