DataMuseum.dk

Presents historical artifacts from the history of:

Regnecentalen RC-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Regnecentalen RC-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T u

⟦593044510⟧ TextFile

    Length: 2143 (0x85f)
    Types: TextFile
    Names: »usr/admin/menu/packagemgmt/lpmgmt «

Derivation

└─⟦833723c12⟧ Bits:30004042/core5.imd SW95705I 386/ix Multi-user Release 1.2
    └─⟦this⟧ »usr/admin/menu/packagemgmt/lpmgmt « 

TextFile

#ident  "@(#)lpmgmt     1.2 - 87/10/30"
#menu# add line printer
#help# 
#help#  Lpsetup defines the line printers connected to the system and the
#help#  default line printer used when none is designated.
#
# Loop while installer configures in the desired printers.
#

REQ=/usr/spool/lp/request

while :
do
	echo "\nAvailable printer types are:\n"
	echo "  rc607   for RC607 Dot Matrix Printer,"
	echo "  rc608   for RC608 Dot Matrix Printer,"
	echo "  rc609   for RC609 Dot Matrix Printer,"
	echo "  rc632   for RC632 Laser Printer,"
	echo "  rc640   for RC640 Laser Printer,"
	echo "  dumb    for a line printer without special functions or protocol,"
	echo "  done    if no more printers are to be configured."
	echo "\nEnter type of printer to be added to lp system:  \c"
	read answer
	case "$answer" in
	\"done\"|done)
		#
		# initialize default to "/", since that can never be
		# a legal printer name
		#
		default=/
		while [ "$default" = "/" ]
		do
			echo "Select the name of the printer to be the default"
			echo "destination from the following:"
			ls $REQ
			echo "(or type <return> to keep `lpstat -d`)"
			read default
			if [ "$default" = "" ]
			then
				: continue, no default
			elif
				[ "$REQ/$default" = "`ls -d $REQ/$default`" ]
			then
				/usr/lib/lpadmin -d$default
			else
				default=/
			fi
		done
		echo "\n Current lp system status:"
		lpstat -t
		#
		# Create entry in /etc/rc.d to start scheduler
		# when system is booted
		#
		if
			test -d /etc/rc.d
		then
			echo "# This script is used to start the lp scheduler." >/etc/rc.d/lp
			echo "rm -f /usr/spool/lp/SCHEDLOCK" >>/etc/rc.d/lp
			echo "/usr/lib/lpsched" >>/etc/rc.d/lp
		fi
		exit;;
	rc607|\"rc607\")
		lpsetup1 "Dot Matrix Printer" RC607;;
	rc608|\"rc608\")
		lpsetup1 "Dot Matrix Printer" RC608;;
	rc609|\"rc609\")
		lpsetup1 "Dot Matrix Printer" rc609;;
	rc632|\"rc632\")
		lpsetup1 "HP LASER JET 500" rc632;;
	rc640|\"rc640\")
		lpsetup1 "HP LASER JET 2000" RC640;;
	dumb|\"dumb\")
		lpsetup1 dumb dumb;;
	*)
		echo "Printer type $answer not known.\07"
		continue;;
	esac
	if [ $? -ne 0 ]
	then
		echo "configuration error"
		break 2
	fi
done