13 lines
204 B
Bash
13 lines
204 B
Bash
|
#!/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
|