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

⟦4a595b641⟧ TextFile

    Length: 1966 (0x7ae)
    Types: TextFile
    Notes: Uncompressed file

Derivation

└─⟦5a9f1bdbd⟧ Bits:30004698 RC900 Environment Rel. 2.0 (5.25 inch)
└─⟦5a9f1bdbd⟧ UNIX Filesystem
    └─⟦a755aa516⟧ »RCENV.ISC/new/usr/admin/menu/machinemgmt/lpmgmt/icl/rclp_ui.Z« 
└─⟦de58d8f44⟧ Bits:30004699 RC900 Environment Rel. 2.0 (3.5 inch)
└─⟦de58d8f44⟧ UNIX Filesystem
    └─⟦a755aa516⟧ »RCENV.ISC/new/usr/admin/menu/machinemgmt/lpmgmt/icl/rclp_ui.Z« 
        └─⟦this⟧ 

TextFile

#ident  "@(#)rclp_ui.sh	1.1 - 92/09/14"

#
# Loop while installer configures in the desired printers.
#

REQ=/usr/spool/lp/admins/lp/interfaces

lpstat -r | grep "not running" > /dev/null
if [ $? -eq 0 ]
then
	rm -f /usr/spool/lp/SCHEDLOCK
	/usr/lib/lpsched > /dev/null
fi
while :
do
	echo "\nAvailable printer types are:\n"
	echo "  epson   e.q. RC607, RC608, RC616, RC617 Dot Matrix Printer,"
	echo "  ibmpro  e.q. RC609 Dot Matrix Printer,"
	echo "  hppcl   e.q. RC632, RC640 Laser Printer,"
	echo "  rc640   e.q. RC640 Laser Printer (with duplex option),"
	echo "  dumb    e.q. 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 -C $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 links to start scheduler
		test -f /etc/rc0.d/K80lp ||
			ln /etc/init.d/lp /etc/rc0.d/K80lp
		test -f /etc/rc2.d/S80lp ||
			ln /etc/init.d/lp /etc/rc2.d/S80lp
		exit;;
	epson|\"epson\")
		rclpset1 "Dot Matrix Printer" rcepson;;
	ibmpro|\"ibmpro\")
		rclpset1 "Dot Matrix Printer" rcibmpro;;
	hppcl|\"hppcl\")
		rclpset1 "Dot Matrix Printer" rchppcl;;
	rc640|\"rc640\")
		rclpset1 "HP LASER JET 2000" rc640;;
	dumb|\"dumb\")
		rclpset1 rcdumb rcdumb;;
	*)
		echo "Printer type $answer not known.\07"
		continue;;
	esac
	if [ $? -ne 0 ]
	then
		echo "configuration error"
		break
	fi
done