done, user auto login
This commit is contained in:
parent
702f10f324
commit
a97a48aa74
2 changed files with 4 additions and 7 deletions
|
@ -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
|
|
Loading…
Reference in a new issue