#!/bin/sh # # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # # Watchdog Test for user interaction. This script is only run when # there is a windowing system. This script prompts # for the user to interact with the screen if it is legible. If the # user lets it timeout, then the Xorg server is allowed to be killed. # ### ### Setup X watchdog in case user can't see the screen ### /sbin/install-X-watchdog & /usr/dt/bin/dtterm \ -name Legibility \ -bg white \ -xrm "*menuBar: False" \ -geometry 80x15+0+0 \ -e /sbin/sh -c \ "echo If the screen is legible, press ENTER in this window.; read a" kill -TERM `pgrep -f install-X-watchdog`