diff options
author | Andreas Loibl <andreas@andreas-loibl.de> | 2013-02-14 10:05:07 +0100 |
---|---|---|
committer | Andreas Loibl <andreas@andreas-loibl.de> | 2013-02-14 10:05:07 +0100 |
commit | 18669d68295a0d6ac4b4e6d5934cc3e1403c056f (patch) | |
tree | c9644d7da6ae100947971797256a1d6313bb92f9 /backend | |
parent | d5940ebde8cd1fee6498aac2249eb20ebf5ec395 (diff) | |
download | acritoxinstaller-18669d68295a0d6ac4b4e6d5934cc3e1403c056f.zip acritoxinstaller-18669d68295a0d6ac4b4e6d5934cc3e1403c056f.tar.gz |
fixed GDM3 auto login
Diffstat (limited to 'backend')
-rw-r--r-- | backend/modules/install_main | 7 |
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 |