blob: 83e5c913eb21c9e6acee43bb9e9092e5e4efc42b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
set -e
# Enable lightdm autologin for linaro user
if [ -e $target/etc/lightdm/lightdm.conf ]; then
sed -i "s|^#autologin-user=.*|autologin-user=linaro|" $target/etc/lightdm/lightdm.conf
sed -i "s|^#autologin-user-timeout=.*|autologin-user-timeout=0|" $target/etc/lightdm/lightdm.conf
fi
# Enable sddm autologin for linaro user and configure theme
if [ -e $target/usr/bin/sddm ]; then
chroot $target /usr/bin/sddm --example-config > $target/etc/sddm.conf
sed -i "s|^Session=.*|Session=lxqt.desktop|" $target/etc/sddm.conf
sed -i "s|^User=.*|User=linaro|" $target/etc/sddm.conf
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
|