Skip to content
Snippets Groups Projects
Commit 9156973e authored by Bart Ribbers's avatar Bart Ribbers
Browse files

Attempt to integrate with lightdm and elogind

parent 3d1fd823
No related branches found
No related tags found
No related merge requests found
Pipeline #196437 failed
# This file gets removed with postmarketos-ui-unity8, even if modified!
[Seat:*]
autologin-user=username
autologin-user-timeout=0
autologin-session=unity8
......@@ -7,13 +7,13 @@ pkgdesc="(Wayland) Unity8"
url="https://wiki.postmarketos.org/wiki/Unity_8"
arch="noarch"
license="GPL-3.0-or-later"
depends="unity8"
depends="unity8 lightdm xorg-server"
install="$pkgname.post-install"
source="start_unity8.sh"
source="60-lightdm-autologin.conf"
options="!check"
package() {
install -D -m644 "$srcdir"/start_unity8.sh \
"$pkgdir"/etc/profile.d/start_unity8.sh
install -Dm644 "$srcdir"/60-lightdm-autologin.conf \
"$pkgdir"/usr/share/lightdm/lightdm.conf.d/60-autologin.conf
}
sha512sums="bc7a7f692e75044494d5c8aa7e376705be167bb4ec347aab221da706d664f85939f4c4af997746fc44f2ae7ffb89f0d5af1e40186b94ff1bfca89c21a1448168 start_unity8.sh"
sha512sums="f727782535b116f00966d48fbbfe7891fbc3f4662f5aca9646e8a7bdec312e7259d2930499cfc9e11b7a444f6729a4286d080ffc55e7d6a6a6f2ae5b0bd411a5 60-lightdm-autologin.conf"
#!/bin/sh
# Autologin on tty1, let busybox autoconfigure 2-6
autologin="$(getent passwd 10000 | cut -d ":" -f 1)"
for i in 1 2 3 4 5 6; do
old="^tty$i::respawn:/sbin/getty 38400 tty$i"
new="# tty$i::respawn:/sbin/getty 38400 tty$i"
[ "$i" == "1" ] && new="tty1::respawn:/bin/login -f $autologin"
sed -i -e "s.$old.$new.g" /etc/inittab
done
sed -i "s/username/$(getent passwd 10000 | cut -d: -f1)/g" /usr/share/lightdm/lightdm.conf.d/60-autologin.conf
rc-update add lightdm default
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment