#!/bin/sh
# ident @(#)lom 1.8     01/02/01 SMI
#
# Script to start up / kill lom system watchdog
#

TSLOCK=/tmp/.tsdog.lock

case $1 in
	start )
	        if [ -h /dev/lom ]; then
			lom -c >/dev/null
#
# Uncomment the line below to enable the LOMlite watchdog
# Add "-R on" to the end of the line to enable ASR
# 
#			priocntl -e -c RT lom -W on,40000,10000
		fi
		;;
	stop )
	        if [ -r $TSLOCK ]
                then
                        kill -1 `cat $TSLOCK`
                fi
		;;
esac
