summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2013-02-14 11:21:11 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2013-02-14 11:21:11 +0100
commit46ed2c7d2c0286755b3e79d3449f8b882275d2c0 (patch)
tree00a8247d618189370c37801ac9e7e364231018d2
parent4678dd92bb435590fec9afff83ab89c1ae2270e6 (diff)
downloadacritoxinstaller-46ed2c7d2c0286755b3e79d3449f8b882275d2c0.zip
acritoxinstaller-46ed2c7d2c0286755b3e79d3449f8b882275d2c0.tar.gz
fixed LXDE auto login
-rw-r--r--backend/modules/install_main5
1 files changed, 3 insertions, 2 deletions
diff --git a/backend/modules/install_main b/backend/modules/install_main
index 0a9f1fa..18e1d7a 100644
--- a/backend/modules/install_main
+++ b/backend/modules/install_main
@@ -310,8 +310,9 @@ function copy_etc_to_target()
# LightDM: auto login
if [ -e $TARGET/etc/lightdm/lightdm.conf ]; then
- sed -i -r -e "s|^#.*autologin-user=.*\$|autologin-user=$cfg_username|" \
- -e "s|^#.*autologin-user-timeout=.*\$|autologin-user-timeout=0|" \
+ [ "$cfg_autologin" = "on" ] && autologin="" || autologin="#"
+ sed -i -r -e "s|^#.*autologin-user=.*\$|${autologin}autologin-user=$cfg_username|" \
+ -e "s|^#.*autologin-user-timeout=.*\$|${autologin}autologin-user-timeout=0|" \
$TARGET/etc/lightdm/lightdm.conf
fi