mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-15 09:41:31 +01:00
Diversos cambios
This commit is contained in:
@@ -32,6 +32,7 @@ dialog --title "$titled" --msgbox "$msgd" 15 60
|
||||
function fatalerror {
|
||||
razon=$1
|
||||
mostrardialog "Error" "$(T "An error has ocurred, setup will be stopped") $razon"
|
||||
mostrardialog "Log" "$(T "You have a install log in") /tmp/install.log"
|
||||
exit
|
||||
}
|
||||
function isanetworkerror {
|
||||
@@ -433,6 +434,12 @@ done
|
||||
echo "${nameuser}:${pass1}" | execl chroot chpasswd
|
||||
pass1="" #Reiniciar pass1, por si hace falta de nuevo que el until funcione
|
||||
|
||||
#For some strange login bugs
|
||||
echo "Cambio de permisos por si se quedaron mal en algún momento"
|
||||
execl chroot chmod 755 /
|
||||
execl chroot chmod 755 /bin
|
||||
#
|
||||
|
||||
#See if user wants to edit root password or not.
|
||||
opt=`dialog --stdout --nocancel --menu "$(T "You want to edit root (admin) password or set same as user?")" 0 0 4 1 "$(T "Same as user")" 2 "$(T "Edit")"`
|
||||
case $opt in
|
||||
@@ -775,10 +782,15 @@ else
|
||||
fi
|
||||
}
|
||||
|
||||
##End of declaring functions, start of script
|
||||
|
||||
clear
|
||||
mostrardialog "$(T "JKArch install script")" "$(T "Intro arch install script")"
|
||||
mostrardialog "JKArch" "El script esta en estado beta y se esta actualizando casi constantemente. Puede haber fallos importantes. En caso de fallo, vuelva a probar en unas horas"
|
||||
if [[ $isoffline=0 ]];then
|
||||
mostrardialog "JKArch" "El script esta en estado beta y puede haber fallos. En caso de fallo, vuelva a probar en unas horas o con la versión offline.\nTambien podeis mandarnos un correo a contacto@jkanetwork.com y usar el log guardado en /tmp"
|
||||
else
|
||||
mostrardialog "JKArch" "El script esta en estado beta y puede haber fallos. En caso de fallo, podeis mandarnos un correo a contacto@jkanetwork.com y usar el log guardado en /tmp"
|
||||
fi
|
||||
echo "Desmontando posibles particiones"
|
||||
umount /mnt/boot/efi/
|
||||
umount /mnt/*
|
||||
@@ -880,12 +892,6 @@ echo "$(T "Last tweaks and cleaning")"
|
||||
execl chroot systemctl enable dhcpcd
|
||||
execl chroot pacman -Sc --noconfirm
|
||||
|
||||
#For some strange login bugs
|
||||
echo "Cambio de permisos por si se quedaron mal en algún momento"
|
||||
execl chroot chmod 755 /
|
||||
execl chroot chmod 755 /bin
|
||||
#
|
||||
|
||||
if [[ $isoffline = 1 ]];then # Is an offline installation?
|
||||
echo "Configurando pacman para usar servidores web en los siguientes arranques..."
|
||||
mv pacman.conf /mnt/etc/pacman.conf #Put online pacman.conf
|
||||
|
||||
Reference in New Issue
Block a user