1
0
mirror of https://gitlab.com/JKANetwork/JKArch.git synced 2026-02-15 17:51:33 +01:00

ntpdinstall

This commit is contained in:
kprkpr
2016-08-21 12:50:45 +02:00
parent 8aa065df0e
commit 31fd5a3285
3 changed files with 24 additions and 12 deletions

View File

@@ -1,4 +1,5 @@
#!/bin/bash
## Note: Some text editors in some lines its wrong the "markup color" because much '"'($) things.
sclang=$1
source translations.sh
#Try to disable ctrl+C
@@ -9,7 +10,7 @@ setterm -blank 0 -powerdown 0 -powersave off
export NCURSES_NO_UTF8_ACS=1
function pause {
echo "$(T "Pause function")"
echo "$(T "Press enter to continue...")"
read
}
@@ -29,7 +30,7 @@ exit
function particiones {
clear
mostrardialog "$(T "Questions about partitions")" "$(T "Questions about partitions dialog. Text")"
mostrardialog "$(T "Questions about partitions where system will be installed")" "$(T "Questions about partitions dialog. Text")"
clear
if [[ ! $(lsblk --output KNAME | cut -c1-3 | sort | uniq | sed '1d' | grep 'sd\|hd') ]];then
mostrardialog "ERROR" "$(T "ERROR: You dont have HDD, insert one, poweroff")"
@@ -137,7 +138,8 @@ if [[ ! $optpa -eq 3 ]];then
clear
tput setaf 6 ; echo "$(T "Your partition scheme")" ; tput setaf 9
lsblk --output NAME,KNAME,FSTYPE,SIZE,LABEL
tput setaf 6 ; echo "$(T "Select root partition")" ; tput setaf 9
tput setaf 6 ; echo "$(T "Select root ('/') partition")" ; tput setaf 9
options=($(lsblk --output KNAME | sed '1d' | grep ${hd} | grep '[1-9]$'))
select opt in "${options[@]}"
do
@@ -318,7 +320,7 @@ particiones
clear
tput setaf 6
echo "$(T "Ok, last thing before start installing, summary of changes")"
echo "$(T "Part. scheme before your changes")"
echo "$(T "Partition scheme before your changes")"
tput setaf 9
lsblk --output NAME,KNAME,FSTYPE,SIZE,LABEL
tput setaf 6

View File

@@ -81,6 +81,11 @@ echo "$(T "Now select your timezone for adjusting the clock")"
NEW_TIMEZONE=$(tzselect)
test -n "$NEW_TIMEZONE" && cp -fp /usr/share/zoneinfo/"$NEW_TIMEZONE" /etc/localtime
hwclock --systohc --utc
echo "$(T "Syncing hour to internet")";
pacman -S ntp --noconfirm
systemctl enable ntpd
ntpd -qg
hwclock -w
}

View File

@@ -17,10 +17,10 @@ case "$1" in
"es") echo "Mediante unas preguntas y avanzando, instalaremos arch en su ordenador \nHa sido pensado para ser simple, y guiado por opciones, pero debes estar atento durante el proceso. \nAviso: No debes interrumpir la instalacion por ningun motivo, a no ser que quieras que quede incompleta";;
*) echo "Through simple questions, we will install arch in your computer. \nIts designed to be simple and guied by options, but you need to be careful during the process. \nWarning: You musnt stop the install never, or anything can happen";;
esac;;
"Part. scheme before your changes")
"Partition scheme before your changes")
case $sclang in
"es") echo "Esquema de particiones antes de los cambios";;
*) echo "Partition scheme before your changes";;
*) echo "$1";;
esac;;
"Your partition scheme")
case $sclang in
@@ -32,15 +32,15 @@ case "$1" in
"es") echo "Cambios que has realizado:";;
*) echo "${1}:";;
esac;;
"Pause function")
"Press enter to continue...")
case $sclang in
"es") echo "Pulse enter para continuar...";;
*) echo "Press enter to continue...";;
*) echo "$1";;
esac;;
"Questions about partitions")
"Questions about partitions where system will be installed")
case $sclang in
"es") echo "Preguntas acerca de las unidades donde instalar el sistema";;
*) echo "Questions about partitions where system will be installed";;
*) echo "$1";;
esac;;
"Questions about partitions dialog. Text")
case $sclang in
@@ -82,10 +82,10 @@ case "$1" in
"es") echo "Elige el disco duro a borrar y cambiar por una particion Linux simple para JKArch";;
*) echo "$1";;
esac;;
"Select root partition")
"Select root ('/') partition")
case $sclang in
"es") echo "Elige la particion a usar como sistema raíz ('/')";;
*) echo "Select root (/) partition";;
*) echo "$1";;
esac;;
"Select home partition")
case $sclang in
@@ -267,6 +267,11 @@ case "$1" in
"es") echo "Formateando y montando particiones...";;
*) echo "$1";;
esac;;
"Syncing hour to internet")
case $sclang in
"es") echo "Sincronizando la hora por internet";;
*) echo "$1";;
esac;;
*) echo "$1";;
esac
}