update the generated script
This commit is contained in:
parent
86b5ce77e6
commit
f0cd5e408d
1 changed files with 8 additions and 0 deletions
|
@ -26,17 +26,25 @@ func GenerateVBIOSDumper(vbios_path string) {
|
|||
"#!/bin/bash\n",
|
||||
"# THIS FILE IS AUTO GENERATED!\n",
|
||||
"# IF YOU HAVE CHANGED GPU, PLEASE RE-RUN QUICKPASSTHROUGH!\n",
|
||||
"mkdir -p \"%s\"\n",
|
||||
"echo Attempting to enable reading from rom\n",
|
||||
"echo 1 | sudo tee %s\n",
|
||||
"echo Attempting to dump VBIOS\n",
|
||||
"sudo bash -c \"cat %s\" > %s/%s/vfio_card.rom\n",
|
||||
"file \"%s/%s/vfio_card.rom\"\n",
|
||||
"echo Attempting to disable reading from rom \\(cleanup\\)\n",
|
||||
"echo 0 | sudo tee %s\n",
|
||||
)
|
||||
|
||||
vbios_script := fmt.Sprintf(
|
||||
vbios_script_template,
|
||||
config.Path.QUICKEMU,
|
||||
vbios_path,
|
||||
vbios_path,
|
||||
scriptdir,
|
||||
config.Path.QUICKEMU,
|
||||
scriptdir,
|
||||
config.Path.QUICKEMU,
|
||||
vbios_path,
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue