1
0
mirror of https://gitlab.com/JKANetwork/JKArch.git synced 2026-02-16 18:21:33 +01:00

Another bugfix

This commit is contained in:
kprkpr
2016-11-09 22:44:15 +01:00
parent 0af4fe7315
commit ca6543fd50

View File

@@ -46,6 +46,7 @@ fatalerror "$(T "Pacman error, problems in repositories, apologizes. You have to
fi
}
function execl { ##This function logs and execute commands
local command
echo "------" >> "/tmp/install.log"
@@ -80,6 +81,7 @@ echo "Error: Code $?" >> "/tmp/install.log"
fi
}
function optstate {
if [[ $1 =~ "$2" ]];then
echo "on"
@@ -466,10 +468,7 @@ esac
#Añadir soporte sudo para este nuevo usuario
sed -i "s/\# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/g" /mnt/etc/sudoers
#Modificar gksu si lleva una sesion grafica
if [[ $optentorno != "6" ]];then
execl chroot gconftool-2 --set /apps/gksu/sudo-mode --type=bool true --owner=$(echo $nameuser)
fi
}
function graficos {
@@ -899,6 +898,9 @@ graficos
keyboardlayout
#Aqui va la personalizacion de programas, ya que son graficos.
programasguiuser
#Modificar gksu para preguntar por contraseña del usuario
execl chuser gconftool-2 --set /apps/gksu/sudo-mode --type=bool true --owner=$(echo $nameuser)
fi
execl chroot mkinitcpio -p linux #Hacemos el mkinitcpio después de tener instalados los gráficos