aboutsummaryrefslogtreecommitdiff
path: root/qemu-ifup
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-03-23 20:08:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-23 20:08:19 +0200
commit603657a166bff4a16606a2575364446171466af6 (patch)
treead31cfff7432d5846d8a40505c1943a6fb1d1718 /qemu-ifup
parent6b3c6b23a16869012c934c0df6244885b22e0aa1 (diff)
Initial implementation of network configuration
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"