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

⟦4878887dc⟧ TextFile

    Length: 537 (0x219)
    Types: TextFile
    Names: »usr/lbin/lpsetup2 «

Derivation

└─⟦307897ef0⟧ Bits:30004042/core1.imd SW95705I 386/ix Multi-user Release 1.2
    └─⟦this⟧ »usr/lbin/lpsetup2 « 

TextFile

#ident  "@(#)lpsetup2	1.1 - 87/08/23"
#
#  lpsetup2 dev
#
#	This procedure will modify /etc/inittab so that "tty" will be usable
#	by the lp system as a hardwired printer port.
#

#
# Modify entry in /etc/inittab
# (either there from the beginning or added with ports board)
#

tty="`expr $1 : '.*\(tty[0-9][0-9]\)\$'`"
num=`expr "$tty" : '.*\(..\)'`
ed - /etc/inittab <<-!End
	H
	g/^$num:/s/ *#.*//\\
	s/:respawn:/:off:/\\
	s/\$/ # Dedicated lp printer port/
	w
	q
!End

#
# Tell /etc/init to look at /etc/inittab again.
#

/etc/init q