fdff56f4ec
@drebrez deserves much credit for this one for all the testing, bisecting and for fixing everything. Thank you very much! --- * devices which need a custom weston.ini ship it with a install_if subpackage, so it only gets installed when weston is installed. This sounds complicated, but is actually pretty clean in the APKBUILD. * postmarketos-ui-weston: has a weston.ini.default, which enables xwayland and uses fbdev as backend (because that's what most devices use!). It defaults to the weston.ini.default if there is no weston.ini (as installed by the device package). * changed spaces to tabs for consistency, general minor refactoring of device-APKBUILDs
17 lines
563 B
Bash
17 lines
563 B
Bash
#!/bin/sh
|
|
|
|
. /etc/deviceinfo
|
|
|
|
# Autologin on tty1, let busybox autoconfigure 2-6
|
|
autologin="$(getent passwd 1000 | 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
|
|
|
|
# Create weston-launch group and add user to it
|
|
[ $(getent group weston-launch) ] || groupadd weston-launch
|
|
username="$(getent passwd 1000 | cut -d ":" -f 1)"
|
|
usermod -a -G weston-launch "$username"
|