mirror of
https://github.com/HikariKnight/quickpassthrough.git
synced 2025-06-03 08:38:45 -04:00
Fix: don't need sudo if we're root + other aesthetics
This commit is contained in:
parent
4d0086df41
commit
ab104bb7bc
7 changed files with 125 additions and 80 deletions
|
@ -6,11 +6,12 @@ import (
|
|||
"regexp"
|
||||
|
||||
"github.com/HikariKnight/ls-iommu/pkg/errorcheck"
|
||||
"github.com/klauspost/cpuid/v2"
|
||||
|
||||
"github.com/HikariKnight/quickpassthrough/internal/logger"
|
||||
"github.com/HikariKnight/quickpassthrough/pkg/command"
|
||||
"github.com/HikariKnight/quickpassthrough/pkg/fileio"
|
||||
"github.com/HikariKnight/quickpassthrough/pkg/uname"
|
||||
"github.com/klauspost/cpuid/v2"
|
||||
)
|
||||
|
||||
type Path struct {
|
||||
|
@ -30,6 +31,7 @@ type Config struct {
|
|||
Path *Path
|
||||
Gpu_Group string
|
||||
Gpu_IDs []string
|
||||
IsRoot bool
|
||||
}
|
||||
|
||||
// Gets the path to all the config files
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue