mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-16 02:01:32 +01:00
changes
This commit is contained in:
@@ -89,11 +89,11 @@ esac
|
||||
|
||||
function programasuser {
|
||||
clear
|
||||
dialog --title "Leer" --msgbox "Ahora customizaremos e instalaremos los programas que escoja. Puede seleccionar 'cancelar' en cualquier apartado para no instalar ninguno \n \n Se seleccionan o des seleccionan con la tecla espacio, y con el enter se acepta la selección" 15 60
|
||||
dialog --title "Leer" --msgbox "Ahora customizaremos e instalaremos los programas que escoja. Puede seleccionar 'cancelar' en cualquier apartado para no instalar ninguno \n \n Se seleccionan o des seleccionan con la tecla espacio, y con el enter se acepta la seleccion" 15 60
|
||||
|
||||
|
||||
##Navegadores
|
||||
opta=`dialog --stdout --checklist "¿Que navegador quieres?" 0 0 6 1 "Firefox" on 2 "Chrome" off 3 "Chromium" off 4 "Opera" off 5 "Otter Browser" off 6 "Soporte Flash Player" on`
|
||||
opta=`dialog --stdout --checklist "¿Que navegador web quieres?" 0 0 6 1 "Firefox" on 2 "Chrome" off 3 "Chromium" off 4 "Opera" off 5 "Otter Browser" off 6 "Soporte Flash Player" on`
|
||||
|
||||
case $opta in
|
||||
*1*)
|
||||
@@ -112,7 +112,7 @@ esac
|
||||
pacman -S $packa --noconfirm
|
||||
|
||||
##Editores de texto/Office
|
||||
optb=`dialog --stdout --checklist "¿Editores de texto y/o office?" 0 0 6 1 "Libreoffice" on 2 "AbiWord" off 3 "Gnumeric" off 4 "WPS Office" off 5 "leafpad (Bloc de notas)" on 6 "gedit" off 7 "notepadqq" off`
|
||||
optb=`dialog --stdout --checklist "¿Editores de texto y/o office?" 0 0 6 1 "Libreoffice (Recomendado)" on 2 "AbiWord" off 3 "Gnumeric" off 4 "WPS Office" off 5 "leafpad (Bloc de notas)" on 6 "gedit" off 7 "notepadqq" off`
|
||||
|
||||
case $optb in
|
||||
*1*)
|
||||
@@ -232,34 +232,31 @@ fi
|
||||
|
||||
function bootinstall {
|
||||
clear
|
||||
echo "¿Instalar bootloader?"
|
||||
options=("Si" "No, no instalar gestor de arranque")
|
||||
select opt in "${options[@]}"
|
||||
do
|
||||
case $opt in
|
||||
"Si")
|
||||
if [[ -z $partefi ]];then
|
||||
echo "Instalando GRUB para BIOS/MBR"
|
||||
pacman -S grub os-prober --noconfirm
|
||||
grub-install --target=i386-pc /dev/$argpart
|
||||
grub-mkconfig -o /boot/grub/grub.cfg
|
||||
else
|
||||
echo "Instalando GRUB para GPT/UEFI"
|
||||
echo "AVISO, GPT/UEFI ES EXPERMIENTAL, FALTA PROBARLO MAS, PUEDES QUEDARTE SIN ARRANQUE"
|
||||
pacman -S grub os-prober efibootmgr dosfstools --noconfirm
|
||||
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub_uefi --recheck
|
||||
grub-mkconfig -o /boot/grub/grub.cfg
|
||||
fi
|
||||
break
|
||||
;;
|
||||
"No, no instalar gestor de arranque")
|
||||
#Asi no formateará
|
||||
echo "No se ha instalado ningún gestor de arranque nuevo"
|
||||
break
|
||||
;;
|
||||
*) echo invalid option;;
|
||||
esac
|
||||
done
|
||||
|
||||
optboot=`dialog --stdout --nocancel --menu "¿Instalar bootloader/gestor de arranque?" 0 0 5 1 "Si (GRUB) " 2 "No, no instalar gestor de arranque"`
|
||||
|
||||
case $optboot in
|
||||
1)
|
||||
if [[ -z $partefi ]];then
|
||||
echo "Instalando GRUB para BIOS/MBR"
|
||||
pacman -S grub os-prober --noconfirm
|
||||
grub-install --target=i386-pc /dev/$argpart
|
||||
grub-mkconfig -o /boot/grub/grub.cfg
|
||||
else
|
||||
echo "Instalando GRUB para GPT/UEFI"
|
||||
echo "AVISO, GPT/UEFI ES EXPERMIENTAL, FALTA PROBARLO MAS, PUEDES QUEDARTE SIN ARRANQUE"
|
||||
pacman -S grub os-prober efibootmgr dosfstools --noconfirm
|
||||
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub_uefi --recheck
|
||||
grub-mkconfig -o /boot/grub/grub.cfg
|
||||
fi
|
||||
break
|
||||
;;
|
||||
2)
|
||||
#Asi no formateará
|
||||
echo "No se ha instalado ningún gestor de arranque en el sistema"
|
||||
break
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
echo "Configuración de su sistema"
|
||||
|
||||
Reference in New Issue
Block a user