#!/bin/zsh
# Text getty on /dev/vt/3. write_login_utmpx (shared with console-login) writes
# the LOGIN_PROCESS utmpx entry that illumos login(1) requires; ttymon updates
# but never creates it. Then exec ttymon so it becomes the supervised process.
/etc/zyginit/services/console-login/write_login_utmpx v3 vt/3 $$

exec /usr/lib/saf/ttymon \
    -g \
    -d /dev/vt/3 \
    -l console \
    -m ldterm,ttcompat \
    -T sun-color \
    -h \
    -p "hammerhead vt3 login: "
