mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-19 11:41:31 +01:00
changes
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user