mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-15 09:41:31 +01:00
27 lines
957 B
Bash
Executable File
27 lines
957 B
Bash
Executable File
#!/bin/bash
|
|
echo "Bienvenido a JKArch"
|
|
|
|
opt=`dialog --stdout --nocancel --backtitle "Instalacion de JKArch" --title "Bienvenido a JKArch" --menu "Para poder comenzar la instalacion, se necesita una conexion a internet. ¿Como te conectas?" 0 70 5 1 "Estoy por cable (Ethernet)" 2 "Wi-Fi/Inalambrico" 3 "Configuracion compleja (Ir a la terminal)"`
|
|
|
|
if [[ $opt = 2 ]];then
|
|
wifi-menu
|
|
fi
|
|
if [[ $opt = 3 ]];then
|
|
clear
|
|
echo "Te sacamos a la terminal, configure internet, asegurese de que funcione y después escriba exit para continuar"
|
|
bash
|
|
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
|
|
chmod +x archinstall.sh
|
|
./archinstall.sh |