This commit is contained in:
teldra 2022-02-07 17:16:45 +01:00
parent 25cc6de958
commit 7964b4a739
2 changed files with 1 additions and 123 deletions

View File

@ -1,5 +1,5 @@
packages() {
addpkg base-system lvm2 cryptsetup htop wireguard-tools sudo neovim
addpkg base-system lvm2 cryptsetup htop wireguard-tools sudo neovim xtools
}
config() {

122
main.sh
View File

@ -176,63 +176,6 @@ base() {
reset packages
}
gfx() {
for i in $(find ./etc/gfx/ -type f); do
gfx+=("$(basename $i)")
done
if [ "${#gfx[@]}" -gt "1" ]; then
header "GFX"
multiplechoice "${gfx[@]}"
GFX=$output
elif [ "${#gfx[@]}" -eq "1" ]; then
GFX=${gfx[0]}
fi
if ! [ "${#gfx[@]}" -eq "0" ]; then
. ./etc/gfx/$GFX
packages
reset packages
cp ./etc/gfx/$GFX $tmp_target
fi
}
soundsystem() {
for i in $(find ./etc/soundsystem/ -type f); do
soundsystem+=("$(basename $i)")
done
if [ "${#soundsystem[@]}" -gt "1" ]; then
header "Soundsystem"
multiplechoice "${soundsystem[@]}"
SOUNDSYSTEM=$output
elif [ "${#soundsystem[@]}" -eq "1" ]; then
SOUNDSYSTEM=${soundsystem[0]}
fi
if ! [ "${#soundsystem[@]}" -eq "0" ]; then
. ./etc/soundsystem/$SOUNDSYSTEM
packages
reset packages
cp ./etc/soundsystem/$SOUNDSYSTEM $tmp_target
fi
}
xserver() {
for i in $(find ./etc/xserver/ -type f); do
xserver+=("$(basename $i)")
done
if [ "${#xserver[@]}" -gt "1" ]; then
header "Windowsystem"
multiplechoice "${xserver[@]}"
XSERVER=$output
elif [ "${#xserver[@]}" -eq "1" ]; then
XSERVER=${xserver[0]}
fi
if ! [ "${#xserver[@]}" -eq "0" ]; then
. ./etc/xserver/$XSERVER
packages
reset packages
cp ./etc/xserver/$XSERVER $tmp_target
fi
}
profile() {
for i in $(find ./etc/profile/ -type f|sort -r); do
profile+=("$(basename $i)")
@ -261,32 +204,6 @@ profile() {
fi
}
printing() {
for i in $(find ./etc/printing/ -type f); do
printing+=("$(basename $i)")
done
if [ "${#printing[@]}" -ge "1" ]; then
header "Printing"
if yesno "Do you want printing?" "n"; then
if [ "${#printing[@]}" -gt "1" ]; then
multiplechoice "${printing[@]}"
PRINTING=$output
elif [ "${#printing[@]}" -eq "1" ]; then
PRINTING=${printing[0]}
fi
. ./etc/printing/$PRINTING
packages
reset packages
cp ./etc/printing/$PRINTING $tmp_target
fi
fi
if [ "$output" == "yes" ]; then
addpkg cups
fi
}
lang() {
header "Sprache"
multiplechoice "de" "en"
@ -296,45 +213,6 @@ lang() {
fi
}
bootloader() {
for i in $(find ./etc/bootloader/ -type f); do
bootloader+=("$(basename $i)")
done
if [ "${#bootloader[@]}" -gt "1" ]; then
header "Bootloader"
multiplechoice "${bootloader[@]}"
BOOTLOADER=$output
elif [ "${#bootloader[@]}" -eq "1" ]; then
BOOTLOADER=${bootloader[0]}
fi
if ! [ "${#bootloader[@]}" -eq "0" ]; then
. ./etc/bootloader/$BOOTLOADER
packages
reset packages
cp ./etc/bootloader/$BOOTLOADER $tmp_target
fi
}
network() {
for i in $(find ./etc/network/ -type f); do
network+=("$(basename $i)")
done
if [ "${#network[@]}" -gt "1" ]; then
header "Networkmanager"
multiplechoice "${network[@]}"
NETWORK=$output
elif [ "${#network[@]}" -eq "1" ]; then
NETWORK=${network[0]}
fi
if ! [ "${#network[@]}" -eq "0" ]; then
. ./etc/network/$NETWORK
packages
reset packages
cp ./etc/network/$NETWORK $tmp_target
fi
}
packages() {
WHICH="$1"
for i in $(find ./etc/${WHICH}/ -type f); do