refactoring
This commit is contained in:
parent
b0765f9525
commit
d9c08b4e2b
|
@ -5,22 +5,19 @@ multiplechoice "de" "kde5" "i3wm" "gnome" "none"
|
||||||
multiplechoice "gfx_hardware" "amd" "nvidia" "intel" "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
|
if [[ ! "${cfg[de]}" == "none" ]]; then
|
||||||
addpkg cups cups-filters gutenprint hplip foomatic-db
|
addpkg cups cups-filters gutenprint hplip foomatic-db
|
||||||
|
|
||||||
addpkg "firefox"
|
addpkg "firefox"
|
||||||
|
|
||||||
addpkg "alsa-utils" alsa-plugins-pulseaudio pulseaudio
|
addpkg "alsa-utils" alsa-plugins-pulseaudio pulseaudio
|
||||||
|
|
||||||
|
addpkg "NetworkManager"
|
||||||
|
|
||||||
|
servicesenable "dbus" "NetworkManager" "alsa" "cupsd"
|
||||||
|
|
||||||
servicesenable "alsa" "cupsd"
|
|
||||||
servicesdisable "acpid"
|
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/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/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
|
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