summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/customize-autologin.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/share/customize-autologin.sh b/share/customize-autologin.sh
index da40342..7b7a130 100755
--- a/share/customize-autologin.sh
+++ b/share/customize-autologin.sh
@@ -64,5 +64,13 @@ if test "$(dpkg-query --root "$TARGET" -f '${db:Status-Status}' -W runit-init 2>
exit 0
fi
+if test "$(dpkg-query --root "$TARGET" -f '${db:Status-Status}' -W finit-sysv 2>/dev/null)" = installed; then
+ echo "tty [12345] @console noclear nowait nologin" >> "$TARGET/etc/finit.d/getty.conf"
+ # delete tty1, which could be /dev/console
+ sed -i -e '/\/dev\/tty1 /d' "$TARGET/etc/finit.d/getty.conf"
+
+ exit 0
+fi
+
echo "failed: init system not recognized by autologin customization" 1>&2
exit 1