#!/bin/sh
# single-user-shell/start.sh — replace fd 0/1/2 with /dev/console and
# exec the root shell. Supervisor sets up fd 1/2 to point at the per-
# service log file by default; for an interactive recovery shell we
# need the user's actual console terminal. The redirect happens BEFORE
# exec so the shell inherits a controlling tty (zyginit's PID-1 holds
# /dev/console with O_NOCTTY, leaving it available to claim).

exec </dev/console >/dev/console 2>/dev/console
exec /sbin/sh
