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

⟦5830a0078⟧ TextFile

    Length: 558 (0x22e)
    Types: TextFile
    Names: »usr/lbin/lpsetup2 «

Derivation

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

TextFile

#ident  "%W% - %E%"
#
#  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]\)\$'`"
test $? || exit		# FK, not a login tty
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