summaryrefslogtreecommitdiffstats
path: root/deploy/qemu_hook.sh
diff options
context:
space:
mode:
authorshuai chen <chenshuai@huawei.com>2015-12-02 01:20:22 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-12-02 01:20:22 +0000
commit59f12c1119da51446dcddc84c903e385645632e5 (patch)
treee4e58abbaf13feae8bdd6c781b527022b33442b4 /deploy/qemu_hook.sh
parent59450840d28991bef93ffe893fd5cde4173c1ad2 (diff)
parente93d595baf9b3fbbc0ec213ad725ce438772d8a4 (diff)
Merge "support libverty on ubuntu"
Diffstat (limited to 'deploy/qemu_hook.sh')
-rwxr-xr-xdeploy/qemu_hook.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/deploy/qemu_hook.sh b/deploy/qemu_hook.sh
new file mode 100755
index 00000000..9c6ff6cf
--- /dev/null
+++ b/deploy/qemu_hook.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+if [ "$2" == "started" ]; then
+ timestamp=$(date +"%Y-%m-%d %H:%M:%S")
+ exists=$(ifconfig | grep macvtap|awk '{print $1}')
+
+ for i in $exists; do
+ ifconfig $i allmulti
+ echo "$timestamp ALLMULTI set on $i" >> /var/log/libvirt_hook_qemu.log
+ done
+fi