hamnet70-gnuradio-legacy/setup-tundev.sh

13 lines
204 B
Bash
Raw Normal View History

2019-08-07 22:18:40 +02:00
#!/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