dvp/qvm-usb: simple script to install pvusb hacks

This commit is contained in:
Alexandre Bezroutchko 2012-10-07 22:30:48 +02:00
parent 0359c5df98
commit 6a4ab8d4bf

19
install_pvusb_hacks.sh Executable file
View File

@ -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