#!/bin/zsh
# vtdaemon start hook. Runs in the foreground (vtdaemon.c main() closes fds 0-2,# setsid()s, opens /dev/vt/1, and runs the door server until signalled — no# fork), so zyginit supervises it directly as a daemon.## -c 6 sets nodecount=6 (VT_CONFIG, applied only when >= 2). NOTE: nodecount# COUNTS vt0 (the VT manager), so -c N enables usable consoles vt1..vt(N-1).# -c 6 => vt1..vt5: vt1 system console, vt2 X greeter, vt3/vt4/vt5 text gettys.# Runs as root (no priv drop): vtdaemon needs a full privilege set# (priv_isfullset) or exits 1.exec /usr/lib/vtdaemon -c 6