implement set_Modprobe

This commit is contained in:
HikariKnight 2023-04-09 19:05:49 +02:00
parent ca1eedad1c
commit 9d131fa566
2 changed files with 49 additions and 2 deletions

View file

@ -33,6 +33,8 @@ func (m *model) processSelection() bool {
case GPU_GROUP:
// Generate the VBIOS dumper script once the user has selected a GPU
generateVBIOSDumper(*m)
// Change focus to the next view
m.focused++
case USB:
@ -70,8 +72,11 @@ func (m *model) processSelection() bool {
m.disableVFIOVideo()
}
// Get the device ids for the selected gpu using ls-iommu
gpu_IDs := getIOMMU("-gr", "-i", m.gpu_group, "--id")
// Configure modprobe
configs.Set_Modprobe()
configs.Set_Modprobe(gpu_IDs)
// Go to the next view
m.focused++