#!/usr/bin/execlineb -P

envfile /etc/s6-rc/config/tty9.conf
importas -uD "yes" SPAWN SPAWN
importas -sCuD "" ARGS ARGS
importas -sCuD "/sbin/agetty" GETTY GETTY

if -t { test -e /dev/tty9 }
if -t { test ${SPAWN} = "yes" }
	exec ${GETTY} ${ARGS}
