From d74f51f85ded9bf650c616bbdf010aa75554bebd Mon Sep 17 00:00:00 2001 From: Aaron Young Date: Wed, 17 Aug 2022 18:24:09 -0400 Subject: [PATCH] Fixed script to attach on action bind. --- usb-libvirt-hotplug.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usb-libvirt-hotplug.sh b/usb-libvirt-hotplug.sh index ddb315c..b12b521 100755 --- a/usb-libvirt-hotplug.sh +++ b/usb-libvirt-hotplug.sh @@ -64,6 +64,8 @@ if [ -z "${ACTION}" ]; then fi if [ "${ACTION}" == 'add' ]; then COMMAND='attach-device' +elif [ "${ACTION}" == 'bind' ]; then + COMMAND='attach-device' elif [ "${ACTION}" == 'remove' ]; then COMMAND='detach-device' else