2012-10-07 22:30:48 +02:00
|
|
|
#!/bin/sh -x
|
|
|
|
|
|
|
|
d=/home/abb/qubes-core
|
|
|
|
|
|
|
|
# Install
|
2012-10-08 00:44:40 +02:00
|
|
|
cp $d/misc/qubes_usb.rules /etc/udev/rules.d/99-qubes_usb.rules
|
2012-10-07 22:30:48 +02:00
|
|
|
|
|
|
|
for f in usb_add_change usb_remove ; do
|
2012-10-08 00:44:40 +02:00
|
|
|
cp $d/misc/$f /usr/lib/qubes/$f
|
2012-10-07 22:30:48 +02:00
|
|
|
done
|
|
|
|
|
2012-10-08 00:44:40 +02:00
|
|
|
cp $d/dom0/qvm-core/qubesutils.py /usr/lib64/python2.6/site-packages/qubes/qubesutils.py
|
|
|
|
cp $d/dom0/qvm-tools/qvm-usb /usr/bin/qvm-usb
|
|
|
|
|
2012-10-07 22:30:48 +02:00
|
|
|
udevadm control --reload-rules
|
|
|
|
|
|
|
|
# Rerun
|
|
|
|
xenstore-rm qubes-usb-devices
|
|
|
|
udevadm trigger --action=change
|
|
|
|
sleep 1
|
2012-10-07 22:42:15 +02:00
|
|
|
xenstore-ls -f qubes-usb-devices
|
2012-10-07 22:30:48 +02:00
|
|
|
|