mirror of
https://github.com/rwinkhart/cachyos-postinstall-helper.git
synced 2026-09-05 08:37:39 -04:00
Add option to perform all tweaks
This commit is contained in:
@@ -11,8 +11,13 @@ import (
|
||||
|
||||
func system() {
|
||||
for {
|
||||
var choice int
|
||||
if performAllTweaks {
|
||||
choice = 2
|
||||
} else {
|
||||
choice = front.InputMenuGen("Tweak:", []string{"BACK", "ALL", "replace sudo with doas", "enable ipv6 privacy extensions", "enable SysRq reboots", "disable kernel security mitigations", "unlock amdgpu tuning", "enable amd_pstate in passive mode (recommended for zenver2)"})
|
||||
}
|
||||
var doAll bool
|
||||
choice := front.InputMenuGen("Tweak:", []string{"BACK", "ALL", "replace sudo with doas", "enable ipv6 privacy extensions", "enable SysRq reboots", "disable kernel security mitigations", "unlock amdgpu tuning", "enable amd_pstate in passive mode (recommended for zenver2)"})
|
||||
switch choice {
|
||||
case 1:
|
||||
return
|
||||
@@ -71,6 +76,9 @@ func system() {
|
||||
case 8:
|
||||
addKernelParams([]string{"amd_pstate=passive"})
|
||||
}
|
||||
if performAllTweaks {
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user