5b1a20fbaf
When the UI package is reinstalled (due to the package being recompiled or upgraded), it runs $pkgname.post-upgrade instead of $pkgname.post-install which would run the sed replacement LightDM autologin. This will cause LightDM to show the greeter when the UI package is rebuilt, and the user ran pmbootstrap install without deleting the old chroot. Signed-off-by: Asriel Dreemurr <asriel.danctnix@gmail.com> Reviewed-by: Danct12 <danct12@disroot.org> Signed-off-by: Danct12 <danct12@disroot.org>
4 lines
152 B
Bash
4 lines
152 B
Bash
#!/bin/sh
|
|
|
|
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
|