#!/usr/bin/execlineb -P

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

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