Move to the next view when we are done elevating
This commit is contained in:
parent
57895a1901
commit
e412a2ffbf
2 changed files with 37 additions and 28 deletions
|
@ -8,7 +8,6 @@ import (
|
|||
"github.com/HikariKnight/ls-iommu/pkg/errorcheck"
|
||||
"github.com/HikariKnight/quickpassthrough/internal/configs"
|
||||
"github.com/HikariKnight/quickpassthrough/internal/logger"
|
||||
"github.com/HikariKnight/quickpassthrough/pkg/command"
|
||||
"github.com/HikariKnight/quickpassthrough/pkg/fileio"
|
||||
)
|
||||
|
||||
|
@ -145,22 +144,10 @@ func (m *model) processSelection() bool {
|
|||
|
||||
// This function starts the install process
|
||||
// It takes 1 auth string as variable
|
||||
func (m *model) install(auth string) {
|
||||
func (m *model) install() {
|
||||
// Get the config
|
||||
config := configs.GetConfig()
|
||||
|
||||
// Write to logger
|
||||
logger.Printf("Getting authentication token by elevating with sudo once")
|
||||
|
||||
// Elevate to sudo
|
||||
command.Elevate(auth)
|
||||
|
||||
// Write to logger
|
||||
logger.Printf("Attempting to free hash from memory")
|
||||
|
||||
// Blank out the variable
|
||||
auth = ""
|
||||
|
||||
// Based on the bootloader, setup the configuration
|
||||
if config.Bootloader == "kernelstub" {
|
||||
// Write to logger
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue