No longer touch system directories where not needed.
This commit is contained in:
+8
-8
@@ -8,13 +8,13 @@ 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;
|
||||
if test -e /usr/local/bin/vfio-startup;
|
||||
then
|
||||
mv /bin/vfio-startup.sh /bin/vfio-startup.sh.bkp
|
||||
mv /usr/local/bin/vfio-startup /usr/local/bin/vfio-startup.bkp
|
||||
fi
|
||||
if test -e /bin/vfio-teardown.sh;
|
||||
if test -e /usr/local/bin/vfio-teardown;
|
||||
then
|
||||
mv /bin/vfio-teardown.sh /bin/vfio-teardown.sh.bkp
|
||||
mv /usr/local/bin/vfio-teardown /usr/local/bin/vfio-teardown.bkp
|
||||
fi
|
||||
if test -e /etc/systemd/system/libvirt-nosleep@.service;
|
||||
then
|
||||
@@ -22,10 +22,10 @@ then
|
||||
fi
|
||||
|
||||
cp systemd-no-sleep/libvirt-nosleep@.service /etc/systemd/system/libvirt-nosleep@.service
|
||||
cp hooks/vfio-startup.sh /bin/vfio-startup.sh
|
||||
cp hooks/vfio-teardown.sh /bin/vfio-teardown.sh
|
||||
cp hooks/vfio-startup /usr/local/bin/vfio-startup
|
||||
cp hooks/vfio-teardown /usr/local/bin/vfio-teardown
|
||||
cp hooks/qemu /etc/libvirt/hooks/qemu
|
||||
|
||||
chmod +x /bin/vfio-startup.sh
|
||||
chmod +x /bin/vfio-teardown.sh
|
||||
chmod +x /usr/local/bin/vfio-startup
|
||||
chmod +x /usr/local/bin/vfio-teardown
|
||||
chmod +x /etc/libvirt/hooks/qemu
|
||||
|
||||
Reference in New Issue
Block a user