make this work for people other than me

This commit is contained in:
2020-12-26 16:54:36 -06:00
parent e276831b81
commit fe3e3300aa
3 changed files with 62 additions and 10 deletions

View File

@ -1,5 +1,6 @@
#!/bin/bash
#sudo rmmod vfio-pci
#returns GPU back to host, and removes it for battery saving
for dev in "$@"; do
vendor=$(cat /sys/bus/pci/devices/$dev/vendor)
device=$(cat /sys/bus/pci/devices/$dev/device)