core-agent-linux/qubes-rpc/qubes.DetachPciDevice
Marek Marczykowski-Górecki 9c839d789f
qubes-rpc: fix issues found by shellcheck
Most of them are missing quotes, `` -> $(), and -o/-a usage in
conditions. Also add few directives disabling checks where were too
verbose.
2017-09-30 04:45:31 +02:00

5 regels
92 B
Bash
Executable File

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