Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: client/tests/kvm/scripts/qemu-ifup-ipv6

Issue 4823005: Merge remote branch 'cros/upstream' into tempbranch (Closed) Base URL: http://git.chromium.org/git/autotest.git@master
Patch Set: patch Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/tests/kvm/scripts/qemu-ifup ('k') | client/tests/kvm/scripts/unattended.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tests/kvm/scripts/qemu-ifup-ipv6
diff --git a/client/tests/kvm/scripts/qemu-ifup-ipv6 b/client/tests/kvm/scripts/qemu-ifup-ipv6
new file mode 100644
index 0000000000000000000000000000000000000000..d4b05929f291c46fafa7ec95b980d377679ddb67
--- /dev/null
+++ b/client/tests/kvm/scripts/qemu-ifup-ipv6
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# The following expression selects the first bridge listed by 'brctl show'.
+# Modify it to suit your needs.
+switch=$(/usr/sbin/brctl show | awk 'NR==2 { print $1 }')
+
+/bin/echo 0 > /proc/sys/net/ipv6/conf/${switch}/disable_ipv6
+/sbin/ifconfig $1 0.0.0.0 up
+/usr/sbin/brctl addif ${switch} $1
+/usr/sbin/brctl setfd ${switch} 0
+/usr/sbin/brctl stp ${switch} off
« no previous file with comments | « client/tests/kvm/scripts/qemu-ifup ('k') | client/tests/kvm/scripts/unattended.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698