diff --git a/archinstall/downloadinstall.sh b/archinstall/downloadinstall.sh index 81e34d7..a921509 100755 --- a/archinstall/downloadinstall.sh +++ b/archinstall/downloadinstall.sh @@ -1,12 +1,20 @@ #!/bin/bash echo "Bienvenido a JKArch" +idiom=`dialog --stdout --nocancel --backtitle "JKArch Instalation" --title "Language selection" --menu "Select your language" 0 70 5 1 "Spanish (es)" 2 "English (en)"` + +if [[ $idiom = 1 ]];then + loadkeys es + LANG="es_ES.UTF-8" ; export LANG +elif [[ $idiom = 2 ]];then + loadkeys en + LANG="en_GB.UTF-8" ; export LANG +fi opt=`dialog --stdout --nocancel --backtitle "Instalacion de JKArch" --title "Bienvenido a JKArch" --menu "Para poder comenzar la instalacion, se necesita una conexion a internet. ¿Como te conectas?" 0 70 5 1 "Estoy por cable (Ethernet)" 2 "Wi-Fi/Inalambrico" 3 "Configuracion compleja (Ir a la terminal)"` if [[ $opt = 2 ]];then wifi-menu -fi -if [[ $opt = 3 ]];then +elif [[ $opt = 3 ]];then clear echo "Te sacamos a la terminal, configure internet, asegurese de que funcione y después escriba exit para continuar" bash