aboutsummaryrefslogtreecommitdiff
path: root/qemu-ifup
blob: 2541653ad45c252f58165d4771fd75f867783fcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

trap "exit 1" ERR

switch=br0

set -x

#ip tuntap show "$1"

#ip tuntap add "$1" mode tap user "$(whoami)" # Already created.
ip link set "$1" up
sleep 0.5s
ip link set "$1" master "$switch"

#ip tuntap show "$1"