done, user auto login

This commit is contained in:
Aliberk Sandıkçı 2023-10-23 20:58:52 +03:00
parent 702f10f324
commit a97a48aa74
Signed by: asandikci
GPG key ID: 25C67A03B5666BC1
2 changed files with 4 additions and 7 deletions

View file

@ -3,11 +3,8 @@
### LIGHTDM ### LIGHTDM
# Auto Login # Auto Login
AUTO_LOGIN_FILE=/usr/share/lightdm/lightdm.conf.d/99-pardus-lightdm-greeter-autologin.conf
echo "$1" sudo mv "$1/confi/lightdm-autologin" $AUTO_LOGIN_FILE
echo "$2" user=$([ -n "$SUDO_USER" ] && echo "$SUDO_USER" || echo "$USER")
echo "$3" sudo sed -i -e "s/autologin-user=.*/autologin-user=${user}/" $AUTO_LOGIN_FILE
echo "$4"
echo "$5"
# user=$([ -n "$SUDO_USER" ] && echo "$SUDO_USER" || echo "$USER")
# sed -i -e "s/autologin-user=.*/autologin-user=${user}/" /usr/share/lightdm/lightdm.conf.d/99-pardus-lightdm-greeter-autologin.conf