From 6a5ec8d5de12f2e5501623531f7a5c2014ee538d Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 8 Dec 2024 00:05:44 +0100 Subject: [PATCH] Install `NetworkManager` only if enabled --- scripts/Arch/OS/setup.fish | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/Arch/OS/setup.fish b/scripts/Arch/OS/setup.fish index 44565f06..7054e5de 100755 --- a/scripts/Arch/OS/setup.fish +++ b/scripts/Arch/OS/setup.fish @@ -63,7 +63,10 @@ begin end and genfstab -U "$mountDir" >>"$mountDir/etc/fstab" - and arch-chroot "$mountDir" systemctl enable NetworkManager + + and if isProgramEnabled "networkmanager" + arch-chroot "$mountDir" systemctl enable NetworkManager + end and if set -q timezone arch-chroot "$mountDir" ln -sf "/usr/share/zoneinfo/$timezone" /etc/localtime