diff --git a/archinstall/archinstall.sh b/archinstall/archinstall.sh index 035745f..aef22e7 100755 --- a/archinstall/archinstall.sh +++ b/archinstall/archinstall.sh @@ -62,30 +62,6 @@ wget https://gitlab.com/JKANetwork/JKArch/raw/master/archinstall/chrootinstall.s } -function horaidioma { -#Idioma -echo "Escoja su idioma. Se irá desde la abreviatura general, a la particular" -options=($(cat /etc/locale.gen | grep '^#[a-ZA-Z]' | cut -c2-30 | cut -f1 -d"_" | sort | uniq)) -select opt in "${options[@]}" -do - case $opt in - *) opclang=$opt;break;; - esac -done -clear -options=($(cat /etc/locale.gen | grep '^#'$opclang | cut -c2-30 | cut -f1 -d" " | sort | uniq)) -select opt in "${options[@]}" -do - case $opt in - *) opclang=$opt;break;; - esac -done - -echo "Ahora seleccione su ubicación/país para ajustar el reloj" -NEW_TIMEZONE=$(tzselect) -test -n "$NEW_TIMEZONE" && cp -fp /usr/share/zoneinfo/"$NEW_TIMEZONE" /etc/localtime - -} function userpass { #Aqui hay que añadir los comandos para crear un usuario, aunque esto correrá dentro del chroot y no aqui echo "Sin hacer" @@ -113,5 +89,5 @@ lsblk --output NAME,KNAME,FSTYPE,SIZE,LABEL echo "Partición raiz (/): $particionraiz , con formato $formatoraiz" echo "Si estas de acuerdo, presione enter, en caso contrario, apague el ordenador a la fuerza" read -instalar +install #Falta mucho diff --git a/archinstall/chrootinstall.sh b/archinstall/chrootinstall.sh index e69de29..09b1d47 100755 --- a/archinstall/chrootinstall.sh +++ b/archinstall/chrootinstall.sh @@ -0,0 +1,26 @@ +#!/bin/bash +#Este script corre en el chroot para configurar todo + +function horaidioma { +#Idioma +echo "Escoja su idioma. Se irá desde la abreviatura general, a la particular" +options=($(cat /etc/locale.gen | grep '^#[a-ZA-Z]' | cut -c2-30 | cut -f1 -d"_" | sort | uniq)) +select opt in "${options[@]}" +do + case $opt in + *) opclang=$opt;break;; + esac +done +clear +options=($(cat /etc/locale.gen | grep '^#'$opclang | cut -c2-30 | cut -f1 -d" " | sort | uniq)) +select opt in "${options[@]}" +do + case $opt in + *) opclang=$opt;break;; + esac +done + +echo "Ahora seleccione su ubicación/país para ajustar el reloj" +NEW_TIMEZONE=$(tzselect) +test -n "$NEW_TIMEZONE" && cp -fp /usr/share/zoneinfo/"$NEW_TIMEZONE" /etc/localtime +} \ No newline at end of file