Skip to content

Instantly share code, notes, and snippets.

@ba1020
ba1020 / pci-attach.sh
Created December 8, 2012 10:17 — forked from abeluck/pci-attach.sh
Qubes PCI Scripts
#/bin/sh
########
# Attach pci device to vm
#
# usage: pci-attach <domain> <pci-device>
#
# Will attempt to partially match device names, e.g., "1a" -> "0000:00:1a.0"
#
domain=$1