Heavy refactoring, see PR #28
This commit is contained in:
parent
ab104bb7bc
commit
3337efcb8f
11 changed files with 323 additions and 156 deletions
|
@ -30,9 +30,9 @@ func Set_Modprobe(gpu_IDs []string) {
|
|||
conffile := fmt.Sprintf("%s/vfio.conf", config.Path.MODPROBE)
|
||||
|
||||
// If the file exists
|
||||
if fileio.FileExist(conffile) {
|
||||
if exists, _ := fileio.FileExist(conffile); exists {
|
||||
// Delete the old file
|
||||
os.Remove(conffile)
|
||||
_ = os.Remove(conffile)
|
||||
}
|
||||
|
||||
content := fmt.Sprint(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue