From mit-eddie!think!unixland.natick.ma.us!cpsc.ucalgary.ca!baltes Wed Oct 30 02:26:35 1991
Return-Path: <mit-eddie!think!unixland.natick.ma.us!cpsc.ucalgary.ca!baltes>
Received: by minya.uucp (/\=-/\ Smail3.1.18.1 #18.16)
	id <m0kcAJv-0004jtC@minya.uucp>; Wed, 30 Oct 91 02:26 EST
Received:  by EDDIE.MIT.EDU with UUCP (5.65/25-eef)
	id AA12685; Tue, 29 Oct 91 14:54:53 -0500
Received: from unixland.UUCP by Early-Bird.Think.COM; Tue, 29 Oct 91 14:52:32 EST
Received: by unixland.natick.ma.us (/\=-/\ Smail3.1.18.1 #18.2)
	id <m0kbz3u-0004PAC@unixland.natick.ma.us>; Tue, 29 Oct 91 14:25 EST
Received: from fsa (fsa.cpsc.ucalgary.ca) by Early-Bird.Think.COM; Tue, 29 Oct 91 14:22:51 EST
Received: from fsd.cpsc.ucalgary.ca by fsa (4.1/CSd1.2)
	id AA00797; Tue, 29 Oct 91 12:21:34 MST
Date: Tue, 29 Oct 91 12:21:34 MST
From: mit-eddie!think!cpsc.ucalgary.ca!baltes (Hansjorg Baltes)
Message-Id: <9110291921.AA00797@fsa>
Received: by fsd.cpsc.ucalgary.ca (4.1/cs1.0)
	id AA09728; Tue, 29 Oct 91 12:21:32 MST
To: gray@antaire.com
Cc: esixlist@unixland.natick.ma.us
In-Reply-To: Gray Watson's message of Tue, 29 Oct 91 11:25:50 EST <9110291625.AA07946@antaire.com>
Subject: /etc/rc2.d/S80lp

Hi, here is the file you requested.
-------------------- Cut here ------------------------------------------------
#ident	"@(#)lp:etc/lp	1.6"

##########
#
# If not invoked with at least one argument, assume we are
# running on a pre-SVR3.0 machine. We'll check our name to
# see what we do. Otherwise, the first argument tells what
# to do.
##########
if [ $# = 0 ]
then
	case $0 in
	*/lp-start )
		state=start
		;;
	*/lp-stop )
		state=stop
		;;
	esac
else
	state=$1
fi


set `who -r`
case $state in

'start')
	if [ $9 = "2" -o $9 = "3" ]
	then
		exit
	fi
	[ -f /usr/lib/lpsched ] && /usr/lib/lpsched
	;;
'stop')
	[ -f /usr/lib/lpshut ] && /usr/lib/lpshut
	;;
esac

