src/world/s6-scripts/etc/s6/sv/agetty-tty2/run

9 lines
331 B
Plaintext

#!/sbin/execlineb -P
if { pipeline { redirfd -w 2 /dev/null s6-rc -a list } grep -qFx mount-filesystems }
envfile /etc/s6/sv/agetty-tty2/conf
importas -iu SPAWN SPAWN
importas -iu USER USER
if -t { test ${SPAWN} = "yes" }
ifelse -X { test ${USER} = "" }
{ exec agetty -L -8 tty2 115200 } exec agetty -L -8 tty2 115200 -a ${USER}