aboutsummaryrefslogtreecommitdiff
path: root/qemu-ifup
diff options
context:
space:
mode:
Diffstat (limited to 'qemu-ifup')
-rwxr-xr-xqemu-ifup16
1 files changed, 16 insertions, 0 deletions
diff --git a/qemu-ifup b/qemu-ifup
new file mode 100755
index 0000000..2541653
--- /dev/null
+++ b/qemu-ifup
@@ -0,0 +1,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"