Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ################################# Variables #################################
- ## Adds current time to var for use in echo for a cleaner log and script ##
- DATE=$(date +"%m/%d/%Y %R:%S :")
- ################################## Script ###################################
- echo "$DATE Beginning of Bind!"
- #dGPU host bind (6700XT)
- echo 1 > /sys/bus/pci/devices/0000:03:00.0/remove
- sleep "1"
- echo 1 > /sys/bus/pci/devices/0000:03:00.1/remove
- sleep "1"
- echo 1 > /sys/bus/pci/rescan
- sleep "1"
- ## Unload VFIO-PCI driver ##
- modprobe -r vfio_pci
- modprobe -r vfio_iommu_type1
- modprobe -r vfio
- sleep "1"
- echo "$DATE End of Bind!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement