mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-18 11:11:31 +01:00
changes
This commit is contained in:
@@ -11,7 +11,12 @@ local msgd
|
|||||||
titled=$1
|
titled=$1
|
||||||
msgd=$2
|
msgd=$2
|
||||||
dialog --title "$titled" --msgbox "$msgd" 15 60
|
dialog --title "$titled" --msgbox "$msgd" 15 60
|
||||||
|
}
|
||||||
|
|
||||||
|
function fatalerror {
|
||||||
|
razon=$1
|
||||||
|
mostrardialog "Error fatal" "Ha occurrido un error fatal, la instalacion se va a detener \n Razon: $razon"
|
||||||
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
function particiones {
|
function particiones {
|
||||||
@@ -161,8 +166,14 @@ mount /dev/$partefi /mnt/boot/efi/
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
wget https://gitlab.com/JKANetwork/JKArch/raw/master/archinstall/pacman.conf -O /tmp/pacman.conf
|
wget https://gitlab.com/JKANetwork/JKArch/raw/master/archinstall/pacman.conf -O /tmp/pacman.conf
|
||||||
|
if [[ $? != 0 ]];then
|
||||||
|
fatalerror "Error de conexion con internet, compruebe la red"
|
||||||
|
fi
|
||||||
pacstrap -C /tmp/pacman.conf /mnt/ base
|
pacstrap -C /tmp/pacman.conf /mnt/ base
|
||||||
wget https://gitlab.com/JKANetwork/JKArch/raw/master/archinstall/chrootinstall.sh -O /mnt/root/chrootinstall.sh
|
wget https://gitlab.com/JKANetwork/JKArch/raw/master/archinstall/chrootinstall.sh -O /mnt/root/chrootinstall.sh
|
||||||
|
if [[ $? != 0 ]];then
|
||||||
|
fatalerror "Error de conexion con internet, compruebe la red"
|
||||||
|
fi
|
||||||
chmod +x /mnt/root/chrootinstall.sh
|
chmod +x /mnt/root/chrootinstall.sh
|
||||||
genfstab -U /mnt >> /mnt/etc/fstab
|
genfstab -U /mnt >> /mnt/etc/fstab
|
||||||
cp /etc/netctl/* /mnt/etc/netctl/
|
cp /etc/netctl/* /mnt/etc/netctl/
|
||||||
|
|||||||
@@ -8,9 +8,20 @@ if [[ $opt = 2 ]];then
|
|||||||
fi
|
fi
|
||||||
if [[ $opt = 3 ]];then
|
if [[ $opt = 3 ]];then
|
||||||
clear
|
clear
|
||||||
echo "Te sacamos a la terminal, configure internet y asegurese de que funcione (ej: ping 8.8.8.8) y después escriba exit para continuar"
|
echo "Te sacamos a la terminal, configure internet, asegurese de que funcione y después escriba exit para continuar"
|
||||||
bash
|
bash
|
||||||
fi
|
fi
|
||||||
|
clear
|
||||||
|
echo "Vamos a comprobar que tienes conexión a internet"
|
||||||
|
ping 8.8.8.8 -c3
|
||||||
|
if [[ $? != 0 ]];then
|
||||||
|
clear
|
||||||
|
echo "No tienes o no has conseguido conexión a internet"
|
||||||
|
echo "Se va a reiniciar el instalador"
|
||||||
|
echo "Presione enter para continuar"
|
||||||
|
read
|
||||||
|
exec ./downloadinstall.sh
|
||||||
|
fi
|
||||||
wget https://gitlab.com/JKANetwork/JKArch/raw/master/archinstall/archinstall.sh -O archinstall.sh
|
wget https://gitlab.com/JKANetwork/JKArch/raw/master/archinstall/archinstall.sh -O archinstall.sh
|
||||||
chmod +x archinstall.sh
|
chmod +x archinstall.sh
|
||||||
./archinstall.sh
|
./archinstall.sh
|
||||||
Reference in New Issue
Block a user