refactoring
This commit is contained in:
parent
b0765f9525
commit
d9c08b4e2b
|
@ -5,13 +5,6 @@ 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
|
||||
|
||||
|
@ -19,8 +12,12 @@ if [[ ! "${cfg[de]}" == "none" ]]; then
|
|||
|
||||
addpkg "alsa-utils" alsa-plugins-pulseaudio pulseaudio
|
||||
|
||||
servicesenable "alsa" "cupsd"
|
||||
addpkg "NetworkManager"
|
||||
|
||||
servicesenable "dbus" "NetworkManager" "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
|
||||
|
|
|
@ -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"
|
Loading…
Reference in New Issue
Block a user