aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linaro.org>2020-06-01 14:35:50 -0500
committerAníbal Limón <anibal.limon@linaro.org>2020-06-01 14:40:17 -0500
commita1fccbe3d921b73fae24106aef427727295d100a (patch)
tree51b3c95744a36922fe8d376a6934af6b6c2e5ffe /scripts
parent9fa70a91542878217747cf3b28100ae5ceb03f87 (diff)
scripts/LINARO: Enable automatic login on GDM3
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org> Change-Id: Ie9c9e0571346f9b1cbbf884462c4313c072391c3
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/LINARO/22-display-manager-autologin.chroot6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/LINARO/22-display-manager-autologin.chroot b/scripts/LINARO/22-display-manager-autologin.chroot
index b4806c3..83e5c91 100755
--- a/scripts/LINARO/22-display-manager-autologin.chroot
+++ b/scripts/LINARO/22-display-manager-autologin.chroot
@@ -15,3 +15,9 @@ if [ -e $target/usr/bin/sddm ]; then
sed -i "s|^Current=.*|Current=breeze|" $target/etc/sddm.conf
sed -i "s|^CursorTheme==.*|CursorTheme=breeze_cursors|" $target/etc/sddm.conf
fi
+
+# Enable GDM3 autologin for linaro user
+if [ -e $target/etc/gdm3/daemon.conf ]; then
+ sed -i "s|^#.*AutomaticLoginEnable.*|AutomaticLoginEnable=true|" $target/etc/gdm3/daemon.conf
+ sed -i "s|^#.*AutomaticLogin.*|AutomaticLogin=linaro|" $target/etc/gdm3/daemon.conf
+fi