Install bt-dualboot for dualboot systems

This commit is contained in:
Manuel Thalmann 2024-09-20 01:39:52 +02:00
parent a2c95202b6
commit 5ad3657b32
2 changed files with 9 additions and 1 deletions

View file

@ -14,10 +14,14 @@ function deploySoftware -d "Deploys a the specified software action" -a action
end end
) )
if getConfig valhalla.linux.secureBoot --json | jq --exit-status > /dev/null if isEnabled valhalla.linux.secureBoot
source "$dir/../Config/SecureBoot/main.fish" $argv source "$dir/../Config/SecureBoot/main.fish" $argv
end end
and if isEnabled valhalla.windows.dualboot.enable && $isInstall
yayinst bt-dualboot
end
and if collectionActive essential and if collectionActive essential
if $isInstall if $isInstall
yayinst \ yayinst \

View file

@ -25,6 +25,10 @@ function isSet -S -a property
not test "$(getConfig "$property" --json)" = "null" not test "$(getConfig "$property" --json)" = "null"
end end
function isEnabled -S -a property
getConfig "$property" --json | jq --exit-status > /dev/null
end
function collectionActive -S -a name function collectionActive -S -a name
[ "$(getConfig "valhalla.software.$name" --json)" = "true" ] [ "$(getConfig "valhalla.software.$name" --json)" = "true" ]
end end