summaryrefslogtreecommitdiffstats
path: root/deploy/qemu_hook.sh
blob: 9c6ff6cf091e724ddf5f4d87f3649f81eb42491a (plain)
1
2
3
4
5
6
7
8
9
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