restructure
This commit is contained in:
parent
3fd66b9386
commit
f8610a9190
|
@ -142,6 +142,13 @@ ignorepkg() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
removepkg() {
|
||||||
|
local input=( ${@} )
|
||||||
|
for i in $(seq 0 "$(( ${#input[@]} - 1 ))"); do
|
||||||
|
removepkg+=( "${input[$i]}" )
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
if [[ $1 == "alnum" ]]; then
|
if [[ $1 == "alnum" ]]; then
|
||||||
if [[ "${2}" =~ ^[[:alnum:]]+$ ]] || [[ "${2}" =~ ^[0-9A-Za-z._]+$ ]]; then
|
if [[ "${2}" =~ ^[[:alnum:]]+$ ]] || [[ "${2}" =~ ^[0-9A-Za-z._]+$ ]]; then
|
||||||
|
|
|
@ -18,14 +18,23 @@ echo ""
|
||||||
echo "recent fingerprint: 60:ae:0c:d6:f0:95:17:80:bc:93:46:7a:89:af:a3:2d"
|
echo "recent fingerprint: 60:ae:0c:d6:f0:95:17:80:bc:93:46:7a:89:af:a3:2d"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
for i in ${pkg[@]}; do
|
||||||
|
for j in ${removepkg[@]}; do
|
||||||
|
if [[ "${i}" == "${j}"]]; then
|
||||||
|
continue 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
toinstall+=( "$i" )
|
||||||
|
done
|
||||||
|
|
||||||
if [[ "${#pkg[@]}" -gt 0 ]]; then
|
if [[ "${#pkg[@]}" -gt 0 ]]; then
|
||||||
inst "${pkg[@]}"
|
inst "${pkg[@]}"
|
||||||
else
|
else
|
||||||
echo nothing to do
|
echo nothing to do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${#ignorepkg[@]}" -gt 0 ]]; then
|
if [[ "${#removepkg[@]}" -gt 0 ]]; then
|
||||||
remove "${ignorepkg[@]}"
|
remove "${removepkg[@]}"
|
||||||
else
|
else
|
||||||
echo nothing to do
|
echo nothing to do
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -14,6 +14,7 @@ setconf add "timezone" "Europe/Berlin"
|
||||||
|
|
||||||
addpkg base-system void-repo-multilib void-repo-multilib-nonfree void-repo-nonfree btrfs-progs lvm2 cronie socklog-void ntp xtools sudo wireguard-tools gnupg2 progress pwgen net-tools ncdu nmap mtr ioping iotop hdparm smartmontools htop git
|
addpkg base-system void-repo-multilib void-repo-multilib-nonfree void-repo-nonfree btrfs-progs lvm2 cronie socklog-void ntp xtools sudo wireguard-tools gnupg2 progress pwgen net-tools ncdu nmap mtr ioping iotop hdparm smartmontools htop git
|
||||||
ignorepkg nvi
|
ignorepkg nvi
|
||||||
|
removepkg nvi
|
||||||
servicesenable acpid cronie socklog-unix nanoklogd uuidd
|
servicesenable acpid cronie socklog-unix nanoklogd uuidd
|
||||||
servicesdisable agetty-tty6 agetty-tty5
|
servicesdisable agetty-tty6 agetty-tty5
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,4 @@ if [[ ! "${cfg[de]}" == "none" ]]; then
|
||||||
test -f "${dest}"/etc/locale-user.conf && cp "${dest}"/etc/locale-user.conf "${dest}"/etc/sv/${cfg[dm]}/conf
|
test -f "${dest}"/etc/locale-user.conf && cp "${dest}"/etc/locale-user.conf "${dest}"/etc/sv/${cfg[dm]}/conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${cfg[soundsystem]}" == "pipewire" ]]; then
|
|
||||||
source "${modules}"/"${modulename}".d/install/sound/"${cfg[soundsystem]}".mod
|
|
||||||
fi
|
|
||||||
|
|
||||||
module end
|
module end
|
||||||
|
|
|
@ -8,7 +8,9 @@ multiplechoice "gfx_hardware" "amd" "nvidia" "intel" "none"
|
||||||
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-i18n-de" "thunderbird-i18n-de"
|
||||||
|
|
||||||
|
addpkg "aspell-de" "gspell"
|
||||||
|
|
||||||
addpkg "alsa-utils" alsa-plugins-pulseaudio pulseaudio
|
addpkg "alsa-utils" alsa-plugins-pulseaudio pulseaudio
|
||||||
|
|
||||||
|
@ -17,7 +19,12 @@ if [[ ! "${cfg[de]}" == "none" ]]; then
|
||||||
servicesenable "dbus" "NetworkManager" "alsa" "cupsd"
|
servicesenable "dbus" "NetworkManager" "alsa" "cupsd"
|
||||||
|
|
||||||
servicesdisable "acpid"
|
servicesdisable "acpid"
|
||||||
|
|
||||||
|
addpkg xorg-minimal xorg-fonts mesa-dri vulkan-loader xorg-apps
|
||||||
|
|
||||||
|
removepkg "font-adobe-75dpi" "font-adobe-100dpi"
|
||||||
|
ignorepkg "font-adobe-75dpi" "font-adobe-75dpi"
|
||||||
|
|
||||||
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,15 +0,0 @@
|
||||||
echo not implemented
|
|
||||||
return
|
|
||||||
modulname="wayland"
|
|
||||||
startmodul config "${modulname}"
|
|
||||||
pkg+=( qt5-wayland )
|
|
||||||
postrun_modules+=( "70-de.mod.de/system/${modulname}" )
|
|
||||||
|
|
||||||
#ignore+=()
|
|
||||||
#services_enable+=()
|
|
||||||
#services_disable+=()
|
|
||||||
|
|
||||||
cat <<'EOF'>> "${postinstall}"
|
|
||||||
startmodul post "wayland"
|
|
||||||
MOZ_ENABLE_WAYLAND=1
|
|
||||||
EOF
|
|
|
@ -1,6 +0,0 @@
|
||||||
module start "xorg" "XOrg Window System Configure"
|
|
||||||
|
|
||||||
addpkg xorg-minimal xorg-fonts mesa-dri vulkan-loader xorg-apps
|
|
||||||
ignorepkg font-adobe-75dpi font-adobe-100dpi
|
|
||||||
|
|
||||||
module end
|
|
Loading…
Reference in New Issue
Block a user