Skip to content

Commit a9b897c

Browse files
committed
Replace add/remove events with bind/unbind
As suggested in discussion under PR olavmrk#6 which is also absorbed, further changes were needed but they never materialised. This change is not compatible with systemd older than 247.
1 parent 7c4f74a commit a9b897c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

usb-libvirt-hotplug.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ if [ -z "${ACTION}" ]; then
6262
echo "Missing udev ACTION environment variable." >&2
6363
exit 1
6464
fi
65-
if [ "${ACTION}" == 'add' ]; then
65+
if [ "${ACTION}" == 'bind' ]; then
6666
COMMAND='attach-device'
67-
elif [ "${ACTION}" == 'remove' ]; then
67+
elif [ "${ACTION}" == 'unbind' ]; then
6868
COMMAND='detach-device'
6969
else
7070
echo "Ignored udev ACTION: ${ACTION}" >&2

0 commit comments

Comments
 (0)