#!/bin/sh

DIR="/etc/libvirt/hooks/daemon.d/"

if [ -d $DIR ]; then
  for SCRIPT in $(find $DIR -type f -executable); do
    $SCRIPT $@
    if [ $? -ne 0 ]; then
      exit 1
    fi
  done
fi
