22 lines
533 B
Bash
Executable File
22 lines
533 B
Bash
Executable File
#!/bin/sh -xe
|
|
|
|
##
|
|
## Run this script in usbvm as root.
|
|
## FIXME: this has to be done after each reboot
|
|
##
|
|
|
|
# Copy files
|
|
cp misc/usb_add_change /usr/lib/qubes/usb_add_change
|
|
cp misc/usb_remove /usr/lib/qubes/usb_remove
|
|
cp misc/vusb-ctl.py /usr/lib/qubes/vusb-ctl.py
|
|
cp misc/qubes_usb.rules /etc/udev/rules.d/99-qubes_usb.rules
|
|
|
|
# FIXME: /usr/lib64/python2.6/site-packages/xen
|
|
|
|
# Load PVUSB backend
|
|
modprobe xen-usbback
|
|
|
|
# Configure udevd and make it re-populate xenstore
|
|
udevadm control --reload-rules
|
|
udevadm trigger --action=change
|