1
0
Fork 0
mirror of synced 2024-11-24 19:15:36 -05:00

feat(garuda-inxi): Add grub-customizer check

This commit is contained in:
TNE 2024-04-17 07:26:20 +00:00
parent 8c2074e7f0
commit 94f97528af

View file

@ -37,7 +37,7 @@ detect_snapshots() {
generate_relevant_software() { generate_relevant_software() {
local RELEVANT=() local RELEVANT=()
local packages local packages
packages="$(pacman -Qq garuda-dracut-support mkinitcpio dracut nvidia-dkms 2> /dev/null | xargs || true)" packages="$(pacman -Qq garuda-dracut-support mkinitcpio dracut nvidia-dkms grub-customizer 2> /dev/null | xargs || true)"
systemctl is-enabled tlp &> /dev/null && RELEVANT+=("tlp") systemctl is-enabled tlp &> /dev/null && RELEVANT+=("tlp")
systemctl is-active NetworkManager &> /dev/null && RELEVANT+=("NetworkManager") systemctl is-active NetworkManager &> /dev/null && RELEVANT+=("NetworkManager")
@ -50,6 +50,7 @@ generate_relevant_software() {
fi fi
[[ "$packages" =~ (^| )mkinitcpio($| ) ]] && RELEVANT+=("mkinitcpio") [[ "$packages" =~ (^| )mkinitcpio($| ) ]] && RELEVANT+=("mkinitcpio")
[[ "$packages" =~ (^| )nvidia-dkms($| ) ]] && RELEVANT+=("nvidia-dkms") [[ "$packages" =~ (^| )nvidia-dkms($| ) ]] && RELEVANT+=("nvidia-dkms")
[[ "$packages" =~ (^| )grub-customizer($| ) ]] && RELEVANT+=("grub-customizer")
detect_snapshots detect_snapshots