core-agent-linux/qubes-rpc/qubes.DetachPciDevice
Marek Marczykowski-Górecki ce63d31a2e
Make all scripts in qubes-rpc executable
Don't rely on legacy feature of interpreting non-executable files as
scripts there.
2017-06-09 23:09:58 +02:00

5 lines
85 B
Bash
Executable File

#!/bin/sh
read dev
BDF=0000:$dev
echo $BDF > /sys/bus/pci/devices/$BDF/driver/unbind