This commit is contained in:
braniz
2023-10-03 19:23:54 +02:00
parent 1efb5c6a87
commit fb38342e80
6 changed files with 94 additions and 357 deletions

View File

@@ -32,13 +32,23 @@ get_group_users() {
fi
}
# Funktion, um einen zufälligen Host-Namen aus der Liste auszuwählen
get_random_name() {
# Liste der Namen
local names=("frodo" "samweis" "gandalf" "aragorn" "legolas" "gimli" "boromir" "meriadoc" "peregrin" "arwen" "galadriel" "celeborn" "elrond" "glorfindel" "faramir" "eowyn" "theoden" "treebeard" "gollum" "sauron" "saruman" "bilbo" "denethor" "radagast" "thranduil" "bard" "frodo")
# Zufälligen Index auswählen
local random_index=$((RANDOM % ${#names[@]}))
echo "${names[random_index]}"
}
# %--------------------end/Funktionen--------------------%
echo "User / Passwort: $VAR_USER/Start1234"
echo "Welches VDI-OS soll installiert werden"
echo
echo "Für wen soll es sein?"
echo "Für wenn soll es sein?"
echo
COLUMNS=10
PS3="Ihre Auswahl: "