diff options
Diffstat (limited to 'genome-autostarter/genome-autostarter.sh')
-rw-r--r-- | genome-autostarter/genome-autostarter.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/genome-autostarter/genome-autostarter.sh b/genome-autostarter/genome-autostarter.sh index 1555d05..d1aba90 100644 --- a/genome-autostarter/genome-autostarter.sh +++ b/genome-autostarter/genome-autostarter.sh @@ -5,7 +5,7 @@ if [ $? == 0 ]; then find /etc/xen/auto -name "*" -type l | xargs -n1 basename 2> /dev/null | xargs -n1 virsh start &> /dev/null else # We're using kvm - for vm_xml in `find /etc/libvirt/qemu/autostart -name "*" -type l`; do + for vm_xml in `find /etc/libvirt/qemu/autostart -name "*" -type l 2> /dev/null`; do vm=`basename $vm_xml .xml` # Chop of the extension virsh start $vm &> /dev/null done |