Annotate generated lines

The lines above some are credited elsewhere (sensors-detect) so
I feel correct attribution might be helpful
in the future
This commit is contained in:
Phil 2022-03-04 00:05:28 +00:00
parent ba632608b9
commit d1044e1b40

View file

@ -5,14 +5,18 @@ function set_MODULES () {
source "$SCRIPTDIR/lib/paths.sh"
# Write "/etc/modules"
printf "vfio
printf "
# Generated by vfio-setup
vfio
vfio_iommu_type1
vfio_pci ids=$1
vfio_virqfd
" >> "$SCRIPTDIR/$MODULES"
# Write "/etc/initramfs-tools/modules"
printf "vfio
printf "
# Generated by vfio-setup
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
@ -38,7 +42,7 @@ vfio_virqfd
GPU_DEVID="$GPU_DEVID disable_vga=1"
;;
esac
# Write the vfio modprobe config
printf "# This is an autogenerated file that stubs your graphic card for use with vfio
# This file should be placed inside /etc/modprobe.d/
@ -57,7 +61,7 @@ softdep radeon pre: vfio vfio_pci
function main () {
SCRIPTDIR=$(dirname `which $0` | perl -pe "s/\/\.\.\/lib//" | perl -pe "s/\/lib$//")
set_MODULES $1
}