From 25dcb5c79e0e8632a969b73aca5e3484732fb2b4 Mon Sep 17 00:00:00 2001 From: Ansh Srivastava <50ansh.srivastava@gmail.com> Date: Tue, 13 Oct 2020 05:43:00 +0000 Subject: [PATCH] Update install_hooks.sh --- install_hooks.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/install_hooks.sh b/install_hooks.sh index dd49621..7dff080 100755 --- a/install_hooks.sh +++ b/install_hooks.sh @@ -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