Enviado em 24/07/2019 - 09:11h
Bom dia/tarde/noite/madrugada!
OSChooseOptions=()
local OSServerCount=0
# Save the old Internal Field Separator in a variable
OIFS=$IFS
# and set the new one to newline
IFS=$'\n'
# Put the DNS Servers into an array
for OS in ${OSTYPE}
do
TYPE="$(cut -d':' -f2 <<< "${OS}")"
OSChooseOptions[OSServerCount]="${TYPE}"
(( OSServerCount=OSServerCount+1 ))
OSChooseOptions[OSServerCount]=""
(( OSServerCount=OSServerCount+1 ))
done
OSChooseOptions[OSServerCount]="Custom"
(( OSServerCount=OSServerCount+1 ))
OSChooseOptions[OSServerCount]=""
# Restore the IFS to what it was
IFS=${OIFS}
# In a whiptail dialog, show the options
OSchoices=$(whiptail --separate-output --menu "Selecione o Tipo de OS." ${r} ${c}$
"${OSChooseOptions[@]}" 2>&1 >/dev/tty) || \
# exit if Cancel is selected
{ printf " %bCancel was selected, exiting installer%b\\n" ; exit 1; }
Como gerar qualquer emoji ou símbolo unicode a partir do seu teclado
Instalar e Configurar o Slackware Linux em 2025
Como configurar os repositórios do apt no Debian 12 em 2025
Passkeys: A Evolução da Autenticação Digital
Instalação de distro Linux em computadores, netbooks, etc, em rede com o Clonezilla
Configurando o Conky para iniciar corretamente no sistema
3 configurações básicas que podem melhorar muito a sua edição pelo editor nano
Como colorir os logs do terminal com ccze
Instalação Microsoft Edge no Linux Mint 22
Como configurar posicionamento e movimento de janelas no Lubuntu (Openbox) com atalhos de teclado
Site da gontijo simplesmente não abre, ERR_HTTP2_PRO... [RESOLVIDO] (4)