void-bash-installer/step1/50-system
2021-05-14 15:52:32 +02:00

52 lines
1.6 KiB
Plaintext

while input "hostname?" "void"; do
if check alnum "${output}"; then
setconf add hostname "${output}"
break
fi
done
setconf add "lang" "de_DE"
setconf add "lang_console" "de-latin1-nodeadkeys"
setconf add "timezone" "Europe/Berlin"
setconf "add" "gfx_system" "xorg"
for i in $(find "${dir}/profiles/desktops" -type f); do
des+=( "$(basename $i)" )
done
multiplechoice "de" "none" "${des[@]}"
if [[ ! "${cfg[de]}" == "none" ]]; then
multiplechoice "gfx_hardware" "amd" "nvidia" "intel" "none"
if [[ "${cfg[gfx_hardware]}" == "amd" ]]; then
addpkg mesa-vulkan-radeon xf86-video-amdgpu mesa-vaapi mesa-vdpau
elif [[ "${cfg[gfx_hardware]}" == "intel" ]]; then
addpkg mesa-vulkan-intel xf86-video-intel intel-video-accel
fi
fi
if yesno "Printing enabled?" "y"; then
source "${dir}/profiles/printing"
addpkg "${printing}"
servicesenable "${enable_service}"
fi
source "${dir}/profiles/basesystem"
servicesenable "${serviceenable}"
servicesdisable "${servicedisable}"
addpkg "${pkgs}"
ignorepkg "${ignorepkgs}"
if [[ ! "${cfg[de]}" == "none" ]]; then
source "${dir}/profiles/desktop"
servicesenable "${serviceenable}"
servicesdisable "${servicedisable}"
ignorepkg "${ignorepkgs}"
source "${dir}/profiles/desktops/${cfg[de]}"
servicesenable "${dm}"
addpkg "${spelling}" "${alsa}" "${xorg}" "${browser}" "${mail}" "${messenger}" "${terminal}" "${imageviewer}" "${pdf}" "${filemanager}" "${archiver}" "${screenshot}" "${calc}" "${pinentry}" "${keyring}" "${gpg}" "${policykit}" "${sshaskpass}" "${office}" "${dm}" "${de}" "${networkmanager}"
fi
servicesenable "{$networkmanager}"