refactoring

This commit is contained in:
teldra 2021-03-12 16:32:01 +01:00
parent b0765f9525
commit d9c08b4e2b
4 changed files with 5 additions and 24 deletions

View File

@ -5,22 +5,19 @@ multiplechoice "de" "kde5" "i3wm" "gnome" "none"
multiplechoice "gfx_hardware" "amd" "nvidia" "intel" "none"
if [[ ! "${cfg[soundsystem]}" == "none" ]]; then
addpkg "alsa-utils" alsa-plugins-pulseaudio pulseaudio
servicesenable "alsa"
fi
if [[ ! "${cfg[de]}" == "none" ]]; then
addpkg cups cups-filters gutenprint hplip foomatic-db
addpkg "firefox"
addpkg "alsa-utils" alsa-plugins-pulseaudio pulseaudio
addpkg "NetworkManager"
servicesenable "dbus" "NetworkManager" "alsa" "cupsd"
servicesenable "alsa" "cupsd"
servicesdisable "acpid"
test -f "${modules}"/de.d/pre/de/"${cfg[de]}".mod && source "${modules}"/de.d/pre/de/"${cfg[de]}".mod
test -f "${modules}"/de.d/pre/system/"${cfg[gfx_system]}".mod && source "${modules}"/de.d/pre/system/"${cfg[gfx_system]}".mod
test -f "${modules}"/de.d/pre/gfx/"${cfg[gfx_hardware]}".mod && source "${modules}"/de.d/pre/gfx/"${cfg[gfx_hardware]}".mod

View File

@ -1,16 +0,0 @@
module "start" "network" "Network Configure"
multiplechoice "networksystem" "networkmanager" "dhcpcd" "none"
if [[ "${cfg[networksystem]}" == "networkmanager" ]]; then
addpkg "dbus" "NetworkManager"
servicesenable "dbus" "NetworkManager"
servicesdisable "dhcpcd"
elif [[ "${cfg[networksystem]}" == "dhcpcd" ]]; then
addpkg "dhcpcd"
servicesenable "dhcpcd"
elif [[ "${cfg[networksystem]}" == "none" ]]; then
echo "nothing selected"
fi
module "end"