lightdm fct bug bix

This commit is contained in:
Francois B 2018-05-27 01:38:04 +02:00
parent 2725277239
commit b55d9750ed

View file

@ -35,6 +35,8 @@ function enableUFW () {
function enableNumLockX () { function enableNumLockX () {
checkAndInstallDep apt numlockx numlockx checkAndInstallDep apt numlockx numlockx
if which lightdm >/dev/null; then if which lightdm >/dev/null; then
runCmd "sudo touch /etc/lightdm/lightdm.conf.d/70-linuxmint.conf" \
"creating lightdm config file if necessary"
runCmd "sudo cp /etc/lightdm/lightdm.conf.d/70-linuxmint.conf /etc/lightdm/lightdm.conf.d/70-linuxmint.conf.yggbak" \ runCmd "sudo cp /etc/lightdm/lightdm.conf.d/70-linuxmint.conf /etc/lightdm/lightdm.conf.d/70-linuxmint.conf.yggbak" \
"backing up lightdm original config file" "backing up lightdm original config file"
runCmd "echo -e '\ngreeter-setup-script=/usr/bin/numlockx on' | sudo tee -a /etc/lightdm/lightdm.conf.d/70-linuxmint.conf" \ runCmd "echo -e '\ngreeter-setup-script=/usr/bin/numlockx on' | sudo tee -a /etc/lightdm/lightdm.conf.d/70-linuxmint.conf" \