1
0
mirror of https://gitlab.com/JKANetwork/JKArch.git synced 2026-02-15 09:41:31 +01:00

Some checks

This commit is contained in:
kprkpr
2016-09-25 13:06:53 +02:00
parent 117f4245bb
commit f5a1a6db32

View File

@@ -47,6 +47,9 @@ fi
function horaidioma {
#Idioma
while [[ $opclang == "" ]];do
echo "$(T "Select language from general to particular")"
options=($(cat /etc/locale.gen | grep '^#[a-zA-Z]' | cut -c2-30 | cut -f1 -d"_" | sort | uniq))
select opt in "${options[@]}"
@@ -77,6 +80,12 @@ do
done
langinst=$(cat /etc/locale.gen | grep -m1 '^#'$opclang | cut -c2-40)
opt=`dialog --stdout --nocancel --menu "$(T "Your language:") $opclang" 0 0 4 1 "Es correcto" 2 "No, editar"`
case $opt in
2) opclang="";;
esac
done #End of selecting lang
sed -i "s/\#$langinst/$langinst/g" /etc/locale.gen
echo "LANG=$opclang" > /etc/locale.conf
@@ -86,7 +95,14 @@ echo "KEYMAP=$langabr" > /etc/vconsole.conf
locale-gen
clear
echo "$(T "Now select your timezone for adjusting the clock")"
while [[ $NEW_TIMEZONE == "" ]];do
NEW_TIMEZONE=$(tzselect)
opt=`dialog --stdout --nocancel --menu "$(T "Your timezone:") $NEW_TIMEZONE" 0 0 4 1 "Es correcto" 2 "No, editar"`
case $opt in
2) NEW_TIMEZONE="";;
esac
done
test -n "$NEW_TIMEZONE" && cp -fp /usr/share/zoneinfo/"$NEW_TIMEZONE" /etc/localtime
hwclock --systohc --utc
echo "$(T "Syncing hour to internet")";