Update install_hooks.sh

This commit is contained in:
Ansh Srivastava 2020-10-13 05:43:00 +00:00
parent 395bb1dd22
commit 25dcb5c79e

View File

@ -1,14 +1,18 @@
#!/bin/bash
if test -e /etc/libvirt/hooks/qemu then
if test -e /etc/libvirt/hooks/qemu;
then
mv /etc/libvirt/hooks/qemu /etc/libvirt/hooks/qemu_last_backup
fi
if test -e /bin/vfio-startup.sh then
if test -e /bin/vfio-startup.sh;
then
mv /bin/vfio-startup.sh /bin/vfio-startup.sh.bkp
fi
if test -e /bin/vfio-teardown.sh then
if test -e /bin/vfio-teardown.sh;
then
mv /bin/vfio-teardown.sh /bin/vfio-teardown.sh.bkp
fi
if test -e /etc/systemd/system/libvirt-nosleep@.service then
if test -e /etc/systemd/system/libvirt-nosleep@.service;
then
rm /etc/systemd/system/libvirt-nosleep@.service
fi