#!/usr/bin/execlineb -S2
# Without the device this unit has nothing to do -- permanently, not just
# right now.
#
# 125 from the FINISH script is the way to make s6-supervise stop; from the
# run script it does NOT work. Measured on 23.09.2026: with "exit 125" only in
# run the service read
#   down (exitcode 125) 0 seconds, normally up, want up
# at every glance -- the seconds stayed at 0, so it kept being restarted every
# second. Only finish stops it.
#
# $1 is the exit code of the run script, $2 the signal; neither is needed
# here: what counts is whether the device exists.
ifelse -n { test -c /dev/tty1 } { exit 125 }
exit 0
