summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2013-02-14 10:05:07 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2013-02-14 10:05:07 +0100
commit18669d68295a0d6ac4b4e6d5934cc3e1403c056f (patch)
treec9644d7da6ae100947971797256a1d6313bb92f9
parentd5940ebde8cd1fee6498aac2249eb20ebf5ec395 (diff)
downloadacritoxinstaller-18669d68295a0d6ac4b4e6d5934cc3e1403c056f.zip
acritoxinstaller-18669d68295a0d6ac4b4e6d5934cc3e1403c056f.tar.gz
fixed GDM3 auto login
-rw-r--r--backend/modules/install_main7
1 files changed, 3 insertions, 4 deletions
diff --git a/backend/modules/install_main b/backend/modules/install_main
index aad3c56..0a9f1fa 100644
--- a/backend/modules/install_main
+++ b/backend/modules/install_main
@@ -302,11 +302,10 @@ function copy_etc_to_target()
fi
# GDM3: auto login
- [ -f $TARGET/etc/gdm3/daemon.conf ] && daemoncfg=$TARGET/etc/gdm3/daemon.conf
- if [ -e $daemoncfg ]; then
- perl -pi -e "s|^[#\s]*(AutomaticLogin)\s*=.*|\1=$cfg_username|" $daemoncfg
+ if [ -e $TARGET/etc/gdm3/daemon.conf ]; then
+ perl -pi -e "s|^[#\s]*(AutomaticLogin)\s*=.*|\1=$cfg_username|" $TARGET/etc/gdm3/daemon.conf
[ "$cfg_autologin" = "on" ] && autologin="true" || autologin="false"
- perl -pi -e "s|^[#\s]*(AutomaticLoginEnable)\s*=.*|\1=$autologin|" $daemoncfg
+ perl -pi -e "s|^[#\s]*(AutomaticLoginEnable)\s*=.*|\1=$autologin|" $TARGET/etc/gdm3/daemon.conf
fi
# LightDM: auto login