#!/bin/bash -l

[ -f "/srv/guest/ignore" ] && exit 0

sudo chvt 3

if grep -q tty3 "/sys/class/tty/tty0/active"; then
	echo ctl.locked true
else
	echo ctl.locked false
fi
