1
0
mirror of https://gitlab.com/JKANetwork/JKArch.git synced 2026-02-19 11:41:31 +01:00
This commit is contained in:
kprkpr
2016-05-29 23:24:48 +02:00
parent 50c7578be3
commit f70cc3306b

View File

@@ -1,16 +1,15 @@
#!/bin/bash
#Este script corre en el chroot para configurar todo
$argpart=$1
argpart=$1
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))
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
[1-9]*) langabr=$opt;break;;
*) echo "Invalid option";;
*) langabr=$opt;break;;
esac
done
clear
@@ -18,8 +17,7 @@ options=($(cat /etc/locale.gen | grep '^#'$langabr | cut -c2-30 | cut -f1 -d" "
select opt in "${options[@]}"
do
case $opt in
[1-9]*) opclang=$opt;break;;
*) echo "Invalid option";;
*) opclang=$opt;break;;
esac
done