pmaports/main/postmarketos-ui-matchbox/postmarketos-ui-matchbox.post-install
Duncan Guthrie 044c496fc5 New UI: matchbox (#1420)
Add matchbox-window-manager, matchbox-desktop, and their associated
dependencies.
2018-04-19 19:01:02 +00:00

12 lines
345 B
Bash

#!/bin/sh
# 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