mirror of
https://github.com/rwinkhart/cachyos-postinstall-helper.git
synced 2026-08-27 20:36:32 -04:00
Add option to perform all tweaks
This commit is contained in:
+9
-1
@@ -6,8 +6,13 @@ import (
|
||||
|
||||
func configurations() {
|
||||
for {
|
||||
var choice int
|
||||
if performAllTweaks {
|
||||
choice = 2
|
||||
} else {
|
||||
choice = front.InputMenuGen("Custom config:", []string{"BACK", "ALL", "shell profile", "makepkg", "pacman"})
|
||||
}
|
||||
var doAll bool
|
||||
choice := front.InputMenuGen("Custom config:", []string{"BACK", "ALL", "shell profile", "makepkg", "pacman"})
|
||||
switch choice {
|
||||
case 1:
|
||||
return
|
||||
@@ -35,6 +40,9 @@ func configurations() {
|
||||
writeFile(mountPoint+"/etc/pacman.d/hooks/paccache-clean.hook", pacmanHookClean, "root", 0644)
|
||||
writeFile(mountPoint+"/etc/pacman.d/hooks/nvidia.hook", pacmanHookNvidia, "root", 0644)
|
||||
}
|
||||
if performAllTweaks {
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user