diff options
author | shuai chen <chenshuai@huawei.com> | 2015-12-02 01:20:22 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2015-12-02 01:20:22 +0000 |
commit | 59f12c1119da51446dcddc84c903e385645632e5 (patch) | |
tree | e4e58abbaf13feae8bdd6c781b527022b33442b4 /deploy/qemu_hook.sh | |
parent | 59450840d28991bef93ffe893fd5cde4173c1ad2 (diff) | |
parent | e93d595baf9b3fbbc0ec213ad725ce438772d8a4 (diff) |
Merge "support libverty on ubuntu"
Diffstat (limited to 'deploy/qemu_hook.sh')
-rwxr-xr-x | deploy/qemu_hook.sh | 10 |
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 |