#!/usr/bin/execlineb -P
# Stop stage1 early getty BEFORE s6-rc tty1 runs agetty.
# Must wait for down (-wD): plain -d races and leaves two prompts.
# Do not wrap in backtick: backtick needs a command after the block
# ("the command line after the block must not be empty") and with
# foreground { backtick ... }; exit 0 the oneshot still "succeeds"
# without stopping the early getty.
ifelse { test -d /run/service/s6-linux-init-early-getty }
{
	s6-svc -dwD /run/service/s6-linux-init-early-getty
}
exit 0
