mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-18 11:11:31 +01:00
changes
This commit is contained in:
@@ -10,7 +10,7 @@ argpart=$(echo $particionraiz | cut -c1-3)
|
|||||||
trap '' INT
|
trap '' INT
|
||||||
|
|
||||||
function pause {
|
function pause {
|
||||||
echo "Pulse enter para continuar..."
|
echo "$(T "Pause function")"
|
||||||
read
|
read
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -35,14 +35,14 @@ wget https://gitlab.com/JKANetwork/JKArch/raw/master/mods/usersskel.zip -O /root
|
|||||||
|
|
||||||
function horaidioma {
|
function horaidioma {
|
||||||
#Idioma
|
#Idioma
|
||||||
echo "Escoja su idioma. Se irá desde la abreviatura general, a la 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[@]}"
|
||||||
do
|
do
|
||||||
case $opt in
|
case $opt in
|
||||||
*)
|
*)
|
||||||
if [[ -z $opt ]];then
|
if [[ -z $opt ]];then
|
||||||
echo "No valido"
|
echo "$(T "Not valid")"
|
||||||
else
|
else
|
||||||
langabr=$opt
|
langabr=$opt
|
||||||
break
|
break
|
||||||
@@ -56,7 +56,7 @@ do
|
|||||||
case $opt in
|
case $opt in
|
||||||
*)
|
*)
|
||||||
if [[ -z $opt ]];then
|
if [[ -z $opt ]];then
|
||||||
echo "No valido"
|
echo "$(T "Not valid")"
|
||||||
else
|
else
|
||||||
opclang=$opt
|
opclang=$opt
|
||||||
break
|
break
|
||||||
@@ -363,7 +363,7 @@ esac
|
|||||||
}
|
}
|
||||||
|
|
||||||
function bootinstall {
|
function bootinstall {
|
||||||
echo "Espere..."
|
echo "$(T "Wait")"
|
||||||
unzip -o -q /root/inst/splashscreen.zip -d /
|
unzip -o -q /root/inst/splashscreen.zip -d /
|
||||||
chmod +x /usr/bin/splashscreen
|
chmod +x /usr/bin/splashscreen
|
||||||
systemctl enable splashscreen
|
systemctl enable splashscreen
|
||||||
|
|||||||
@@ -1,138 +1,186 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function translate_es {
|
|
||||||
case "$1" in
|
|
||||||
"JKArch install script")
|
|
||||||
echo "Script de instalacion de JKArch (BETA)";;
|
|
||||||
"Intro arch install script")
|
|
||||||
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";;
|
|
||||||
"Part. scheme before your changes")
|
|
||||||
echo "Esquema de particiones antes de los cambios";;
|
|
||||||
"Your partition scheme")
|
|
||||||
echo "Tu esquema de particiones:";;
|
|
||||||
"Your changes")
|
|
||||||
echo "Cambios que has realizado";;
|
|
||||||
"Pause function")
|
|
||||||
echo "Pulse enter para continuar...";;
|
|
||||||
"Questions about partitions")
|
|
||||||
echo "Preguntas acerca de las unidades donde instalar el sistema";;
|
|
||||||
"Text of questions about partitions dialog")
|
|
||||||
echo "Esta parte es la mas importante, antes de seguir se mostrarán los discos duros. Si esta vacío o es nuevo, recomendamos formatear en DOS/MBR. Si sabe lo que hace, o ya usaba GPT/UEFI, tendrá que seleccionar la partición EFI, recuerdelo \n (Si lo instala junto a windows 8.1/10 de 64 bits con UEFI activado, entonces usa EFI y tendrás que seleccionar la unidad EFI/ESP que utiliza luego) \n(UEFI NECESITA QUE EL ARRANQUE HAYA SIDO POR UEFI)";;
|
|
||||||
"ERROR: You dont have HDD, insert one, poweroff")
|
|
||||||
echo "ERROR: No tienes discos duros, no se puede continuar. Por favor enchufe/inserte un disco duro y reinicie. \n Al pulsar aceptar se reiniciara el sistema";;
|
|
||||||
"System configuration")
|
|
||||||
echo "Configuración de su sistema";;
|
|
||||||
"Select hard disk to edit")
|
|
||||||
echo "Seleccione el disco duro para editar";;
|
|
||||||
"Full hard disk install")
|
|
||||||
echo "Instalacion en un disco duro completo";;
|
|
||||||
"Select root partition")
|
|
||||||
echo "Elige la particion a usar como sistema raíz ('/')";;
|
|
||||||
"Select home partition")
|
|
||||||
echo "Elige la particion a usar como home (/home)";;
|
|
||||||
"Not valid")
|
|
||||||
echo "No valido";;
|
|
||||||
"¿Do you want to edit partitions?¿How?")
|
|
||||||
echo "¿Quieres editar las particiones?¿Como?";;
|
|
||||||
"Ok, last thing before start installing, summary of changes")
|
|
||||||
echo "Ok, vamos a comenzar la instalacion, pero antes, un resumen de donde lo va a instalar.";;
|
|
||||||
"If you agree with that, press enter. If not, turn off the computer")
|
|
||||||
echo "Si estas de acuerdo, presione enter, en caso contrario, apague el ordenador a la fuerza y no comenzará la instalación";;
|
|
||||||
"Root partition")
|
|
||||||
echo "Partición raiz (/)";;
|
|
||||||
"Home partition")
|
|
||||||
echo "Partición home (/home)";;
|
|
||||||
"EFI partition in")
|
|
||||||
echo "Tienes una partición EFI en";;
|
|
||||||
"ext4 formatted")
|
|
||||||
echo "formateado en ext4";;
|
|
||||||
"btrfs formatted")
|
|
||||||
echo "formateado en btrfs";;
|
|
||||||
"XFS formatted")
|
|
||||||
echo "formateado en XFS";;
|
|
||||||
"not formatted")
|
|
||||||
echo "sin formatear";;
|
|
||||||
"End")
|
|
||||||
echo "Fin";;
|
|
||||||
"Setup finished, press enter to reboot.")
|
|
||||||
echo "Instalación finalizada, al pulsar aceptar, se reiniciará el sistema";;
|
|
||||||
"Network connection error, please check it")
|
|
||||||
echo "Error de conexion con internet, compruebe la red";;
|
|
||||||
*)
|
|
||||||
echo "$1";;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
function translate_en {
|
|
||||||
case "$1" in
|
|
||||||
"JKArch install script")
|
|
||||||
echo "$1";;
|
|
||||||
"Intro arch install script")
|
|
||||||
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";;
|
|
||||||
"Part. scheme before your changes")
|
|
||||||
echo "Your partition scheme before your changes";;
|
|
||||||
"Your partition scheme")
|
|
||||||
echo "$1:";;
|
|
||||||
"Your changes")
|
|
||||||
echo "$1";;
|
|
||||||
"Pause function")
|
|
||||||
echo "Press enter to continue...";;
|
|
||||||
"Questions about partitions")
|
|
||||||
echo "Questions about partitions where system will be installed";;
|
|
||||||
"Text of questions about partitions dialog")
|
|
||||||
echo "This is the most important part. We will show you your partition scheme. If it's empty, please format it in DOS/MBR type. If you know what are you doing, or if you have formatted in GPT/UEFI, you will have to select EFI/ESP partition later. \n(If you install it alongside with Windows 8.1/10 64 bits with UEFI, you will be to select EFI/ESP partition that windows makes) \n(UEFI NEEDS THAT COMPUTER BOOT HAS BEEN MADE IN UEFI MODE)";;
|
|
||||||
"ERROR: You dont have HDD, insert one, poweroff")
|
|
||||||
echo "ERROR: You dont have any HDD/SSD, setup can't continue. Plug-in some HDD/SSD and start again. When you press enter, computer will poweroff.";;
|
|
||||||
"System configuration")
|
|
||||||
echo "$1";;
|
|
||||||
"Select hard disk to edit")
|
|
||||||
echo "$1";;
|
|
||||||
"Full hard disk install")
|
|
||||||
echo "$1";;
|
|
||||||
"Select root partition")
|
|
||||||
echo "Select root (/) partition";;
|
|
||||||
"Select home partition")
|
|
||||||
echo "Select home (/home) (users) partition";;
|
|
||||||
"Not valid")
|
|
||||||
echo "$1";;
|
|
||||||
"¿Do you want to edit partitions?¿How?")
|
|
||||||
echo "$1";;
|
|
||||||
"Ok, last thing before start installing, summary of changes")
|
|
||||||
echo "Ok, last thing before start installing, summary of changes we will do";;
|
|
||||||
"If you agree with that, press enter. If not, turn off the computer")
|
|
||||||
echo "If you agree with that, press enter. If not, turn off the computer";;
|
|
||||||
"Root partition")
|
|
||||||
echo "$1";;
|
|
||||||
"Home partition")
|
|
||||||
echo "$1";;
|
|
||||||
"EFI partition in")
|
|
||||||
echo "$1";;
|
|
||||||
"ext4 formatted")
|
|
||||||
echo "$1";;
|
|
||||||
"btrfs formatted")
|
|
||||||
echo "$1";;
|
|
||||||
"XFS formatted")
|
|
||||||
echo "$1";;
|
|
||||||
"not formatted")
|
|
||||||
echo "$1";;
|
|
||||||
"End")
|
|
||||||
echo "$1";;
|
|
||||||
"Setup finished, press enter to reboot.")
|
|
||||||
echo "$1";;
|
|
||||||
"Network connection error, please check it")
|
|
||||||
echo "$1";;
|
|
||||||
*)
|
|
||||||
translate_es "$1";;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function T {
|
function T {
|
||||||
|
case "$1" in
|
||||||
|
"JKArch install script")
|
||||||
case $sclang in
|
case $sclang in
|
||||||
"es")
|
"es") echo "Script de instalacion de JKArch (BETA)";;
|
||||||
translate_es "$1";;
|
"en") echo "$1";;
|
||||||
"en")
|
*) echo "$1";;
|
||||||
translate_en "$1";;
|
esac;;
|
||||||
|
"Intro arch install script")
|
||||||
|
case $sclang 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";;
|
||||||
|
"en") 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";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
"Part. scheme before your changes")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "Esquema de particiones antes de los cambios";;
|
||||||
|
"en") echo "Partition scheme before your changes";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
"Your partition scheme")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "Tu esquema de particiones:";;
|
||||||
|
"en") echo "${1}:";;
|
||||||
|
*) echo "${1}:";;
|
||||||
|
esac;;
|
||||||
|
"Your changes")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "Cambios que has realizado:";;
|
||||||
|
"en") echo "${1}:";;
|
||||||
|
*) echo "${1}:";;
|
||||||
|
esac;;
|
||||||
|
"Pause function")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "Pulse enter para continuar...";;
|
||||||
|
"en") echo "Press enter to continue...";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
"Questions about partitions")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "Preguntas acerca de las unidades donde instalar el sistema";;
|
||||||
|
"en") echo "Questions about partitions where system will be installed";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
"Text of questions about partitions dialog")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "Esta parte es la mas importante, antes de seguir se mostrarán los discos duros. Si esta vacío o es nuevo, recomendamos formatear en DOS/MBR. Si sabe lo que hace, o ya usaba GPT/UEFI, tendrá que seleccionar la partición EFI, recuerdelo \n (Si lo instala junto a windows 8.1/10 de 64 bits con UEFI activado, entonces usa EFI y tendrás que seleccionar la unidad EFI/ESP que utiliza luego)";;
|
||||||
|
"en") echo "This is the most important part. We will show you your partition scheme. If it's empty, please format it in DOS/MBR type. If you know what are you doing, or if you have formatted in GPT/UEFI, you will have to select EFI/ESP partition later. \n(If you install it alongside with Windows 8.1/10 64 bits with UEFI, you will be to select EFI/ESP partition that windows makes)";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
"ERROR: You dont have HDD, insert one, poweroff")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "ERROR: No tienes discos duros, no se puede continuar. Por favor enchufe/inserte un disco duro y reinicie. \n Al pulsar aceptar se reiniciara el sistema";;
|
||||||
|
"en") echo "ERROR: You dont have any HDD/SSD, setup can't continue. Plug-in some HDD/SSD and start again. When you press enter, computer will poweroff.";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
"System configuration")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "Configuración de su sistema";;
|
||||||
|
"en") echo "$1";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
"Select hard disk to edit")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "Seleccione el disco duro para editar";;
|
||||||
|
"en") echo "$1";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
"Full hard disk install")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "Instalacion en un disco duro completo";;
|
||||||
|
"en") echo "$1";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
"Select root partition")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "Elige la particion a usar como sistema raíz ('/')";;
|
||||||
|
"en") echo "Select root (/) partition";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
"Select home partition")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "Elige la particion a usar como home (/home)";;
|
||||||
|
"en") echo "Select home (/home) (users) partition";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
"Not valid")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "No valido";;
|
||||||
|
"en") echo "$1";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
"¿Do you want to edit partitions?¿How?")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "¿Quieres editar las particiones?¿Como?";;
|
||||||
|
"en") echo "$1";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
"Ok, last thing before start installing, summary of changes")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "Ok, vamos a comenzar la instalacion, pero antes, un resumen de donde lo va a instalar.";;
|
||||||
|
"en") echo "Ok, last thing before start installing, summary of changes we will do";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
"If you agree with that, press enter. If not, turn off the computer")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "Si estas de acuerdo, presione enter, en caso contrario, apague el ordenador a la fuerza y no comenzará la instalación";;
|
||||||
|
"en") echo "If you agree with that, press enter. If not, turn off the computer";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
"Root partition")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "Partición raiz (/)";;
|
||||||
|
"en") echo "$1";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
"Home partition")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "Partición home (/home)";;
|
||||||
|
"en") echo "$1";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
"EFI partition in")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "Tienes una partición EFI en";;
|
||||||
|
"en") echo "$1";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
"ext4 formatted")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "formateado en ext4";;
|
||||||
|
"en") echo "$1";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
"btrfs formatted")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "formateado en btrfs";;
|
||||||
|
"en") echo "$1";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
"XFS formatted")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "formateado en XFS";;
|
||||||
|
"en") echo "$1";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
"not formatted")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "sin formatear";;
|
||||||
|
"en") echo "$1";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
"End")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "Fin";;
|
||||||
|
"en") echo "$1";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
"Setup finished, press enter to reboot.")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "Instalación finalizada, al pulsar aceptar, se reiniciará el sistema";;
|
||||||
|
"en") echo "$1";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
"Network connection error, please check it")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "Error de conexion con internet, compruebe la red";;
|
||||||
|
"en") echo "$1";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
"Select language from general to particular")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "Escoja su idioma. Se irá desde la abreviatura general, a la particular";;
|
||||||
|
"en") echo "$1";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
"Wait")
|
||||||
|
case $sclang in
|
||||||
|
"es") echo "Espere...";;
|
||||||
|
"en") echo "Wait...";;
|
||||||
|
*) echo "$1";;
|
||||||
|
esac;;
|
||||||
|
*) echo "$1";;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user