hamnet70-gnuradio-legacy/setup-tundev.sh

13 lines
204 B
Bash
Executable file

#!/bin/sh
set -e
if [ -z "$1" ]; then
echo IP+Subnet argument required.
exit 1
fi
sudo ip tuntap add dev hamnet70 mode tun user $UID
sudo ip link set dev hamnet70 up
sudo ip addr add dev hamnet70 $1