From 6a4ab8d4bf774a2ef4823a7dcab3b710fad53f4c Mon Sep 17 00:00:00 2001 From: Alexandre Bezroutchko Date: Sun, 7 Oct 2012 22:30:48 +0200 Subject: [PATCH] dvp/qvm-usb: simple script to install pvusb hacks --- install_pvusb_hacks.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 install_pvusb_hacks.sh diff --git a/install_pvusb_hacks.sh b/install_pvusb_hacks.sh new file mode 100755 index 00000000..b1c47969 --- /dev/null +++ b/install_pvusb_hacks.sh @@ -0,0 +1,19 @@ +#!/bin/sh -x + +d=/home/abb/qubes-core + +# Install +ln -sf $d/misc/qubes_usb.rules /etc/udev/rules.d/99-qubes_usb.rules + +for f in usb_add_change usb_remove ; do + ln -sf $d/misc/$f /usr/lib/qubes/$f +done + +udevadm control --reload-rules + +# Rerun +xenstore-rm qubes-usb-devices +udevadm trigger --action=change +sleep 1 +xenstore-ls qubes-usb-devices +