#	@(#)Menu.lp	13.2 (RC International) 91/08/23

menu="System V Line Printer Services"

framemsg="Please note that this menu only applies to System V printers."

`shell '/bin/echo $$' | set -e VPID;`

help=`set -e OBJ_DIR="$OAMBASE/add-ons/lp/printers"`OPEN TEXT $INTFBASE/Text.itemhelp $LININFO 

close=``

name=start
lininfo="start"
description="Start the Line Printer Scheduler"
action=`if /usr/bin/lpstat -r | grep not > /dev/null;
then
	message "Please wait ...";
	rm -f /usr/spool/lp/SCHEDLOCK;
	/usr/lib/lpsched;
	message "Line printer scheduler started.";
else
	message -b "The printer scheduler is already running.";echo nop;
fi`

name=stop
lininfo="stop"
description="Stop the Line Printer Scheduler"
action=`if /usr/bin/lpstat -r | grep not > /dev/null;
then
	message -b "The printer scheduler is not running.";echo nop;
else
	message "Please wait ...";
	/usr/lib/lpshut;
	message "Line printer scheduler stopped.";
fi`

name=status
lininfo="status"
description="Print All Status Information"
action=OPEN TEXT $OAMBASE/add-ons/lp/printers/Text.status

name=classes
lininfo="classes"
description="Manage Classes of Related Printers"  
action=`set -e OBJ_DIR="$OAMBASE/add-ons/lp/printers/classes"`OPEN MENU $OAMBASE/add-ons/lp/printers/classes/Menu.classes

name=operations
lininfo="operations"
description="Various Printer Service Operations"
action=`set -e OBJ_DIR="$OAMBASE/add-ons/lp/printers/operations"`OPEN MENU $OAMBASE/add-ons/lp/printers/operations/Menu.opers

name=printers
lininfo="printers"
description="Manage Printers"
action=`set -e OBJ_DIR="$OAMBASE/add-ons/lp/printers/printers"`OPEN MENU $OAMBASE/add-ons/lp/printers/printers/Menu.printers

name=requests
lininfo="requests"
description="Manage Requests (print jobs)"
action=`set -e OBJ_DIR="$OAMBASE/add-ons/lp/printers/requests"`OPEN MENU $OAMBASE/add-ons/lp/printers/requests/Menu.requests
