|
DataMuseum.dkPresents historical artifacts from the history of: Regnecentalen RC-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Regnecentalen RC-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T u
Length: 2702 (0xa8e) Types: TextFile Names: »usr/admin/menu/packagemgmt/lpmgmt «
└─⟦3d8f416b2⟧ Bits:30004042/core2.imd SW95705I 386/ix Multi-user Release 1.2 └─⟦this⟧ »usr/admin/menu/packagemgmt/lpmgmt «
#ident "@(#)lpmgmt 1.3 - 88/05/10" #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 true do echo "\nAvailable printer types are:\n" echo " 5310 for AT&T 5310/5320 Dot Matrix Printer," echo " lqp40 for LQP-40 Letter Quality Printer," echo " dqp10 for DQP-10 Matrix Printer," echo " hp for Hewlett Packard 2631A line printer at 2400 baud," echo " prx for Printronix P300 at 4800 baud using XON/XOFF" echo " protocol on a serial interface," echo " 1640 for Diablo 1640 at 1200 baud using XON/XOFF protocol," echo " 450 for DASI 450 using XON/XOFF protocol," echo " mtx80 for a 80 column, parallel 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> for none)" 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 rm -f /usr/spool/lp/SCHEDLOCK /usr/lib/lpsched #give the scheduler time to get started sleep 5 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;; 5310|\"5310\") lpsetup1 "AT&T 5310/5320 Dot Matrix Printer" 5310;; lqp40|\"lqp40\") lpsetup1 "LQP-40 Letter Quality Printer" lqp40;; hp|\"hp\") lpsetup1 "Hewlett Packard 2631A" hp hp2631a;; dqp10|\"dqp10\") lpsetup1 "DQP-10 Matrix Printer" dqp10;; prx|\"prx\") lpsetup1 "Serial Printronix P300" prx prx;; 1640|\"1640\") lpsetup1 "Diablo 1640" 1640;; 450|\"450\") lpsetup1 "DASI 450" f450;; mtx80|\"mtx80\") lpsetup1 mtx80 mtx80;; 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