mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-17 18:51:32 +01:00
Some checks
This commit is contained in:
@@ -47,6 +47,9 @@ fi
|
|||||||
|
|
||||||
function horaidioma {
|
function horaidioma {
|
||||||
#Idioma
|
#Idioma
|
||||||
|
|
||||||
|
while [[ $opclang == "" ]];do
|
||||||
|
|
||||||
echo "$(T "Select language from general to particular")"
|
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))
|
options=($(cat /etc/locale.gen | grep '^#[a-zA-Z]' | cut -c2-30 | cut -f1 -d"_" | sort | uniq))
|
||||||
select opt in "${options[@]}"
|
select opt in "${options[@]}"
|
||||||
@@ -77,6 +80,12 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
langinst=$(cat /etc/locale.gen | grep -m1 '^#'$opclang | cut -c2-40)
|
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
|
sed -i "s/\#$langinst/$langinst/g" /etc/locale.gen
|
||||||
echo "LANG=$opclang" > /etc/locale.conf
|
echo "LANG=$opclang" > /etc/locale.conf
|
||||||
@@ -86,7 +95,14 @@ echo "KEYMAP=$langabr" > /etc/vconsole.conf
|
|||||||
locale-gen
|
locale-gen
|
||||||
clear
|
clear
|
||||||
echo "$(T "Now select your timezone for adjusting the clock")"
|
echo "$(T "Now select your timezone for adjusting the clock")"
|
||||||
|
while [[ $NEW_TIMEZONE == "" ]];do
|
||||||
NEW_TIMEZONE=$(tzselect)
|
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
|
test -n "$NEW_TIMEZONE" && cp -fp /usr/share/zoneinfo/"$NEW_TIMEZONE" /etc/localtime
|
||||||
hwclock --systohc --utc
|
hwclock --systohc --utc
|
||||||
echo "$(T "Syncing hour to internet")";
|
echo "$(T "Syncing hour to internet")";
|
||||||
|
|||||||
Reference in New Issue
Block a user