|
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 e
Length: 1711 (0x6af) Types: TextFile Names: »etc/icc/mkicc «
└─⟦ff5a9a1ac⟧ Bits:30004042/core3.imd SW95705I 386/ix Multi-user Release 1.2 └─⟦this⟧ »etc/icc/mkicc «
# Script to create tty devices for Bell Technologies ICC cards # # Copyrighted as an unpublished work. # (c) Copyright 1986,1988 INTERACTIVE Systems Corporation # All rights reserved. # # RESTRICTED RIGHTS # # These programs are supplied under a license. They may be used, # disclosed, and/or copied only as permitted under such license # agreement. Any copy must contain the above copyright notice and # this restricted rights notice. Use, copying, and/or disclosure # of the programs is strictly prohibited unless otherwise provided # in the license agreement. # #ident "@(#)mkicc 1.1 - 88/05/20" #ident "@(#) (c) Copyright INTERACTIVE Systems Corporation 1986,1988" major=30 case x$1 in x0) iminor=0 ominor=64 Iminor=128 ilist="a b c d e f" Ilist="A B C D E F" ;; x1) iminor=6 ominor=70 Iminor=134 ilist="g h i j k l" Ilist="G H I J K L" ;; x2) iminor=12 ominor=76 Iminor=140 ilist="m n o p q r" Ilist="M N O P Q R" ;; x3) iminor=18 ominor=82 Iminor=146 ilist="s t u v w x" Ilist="S T U V W X" ;; *) echo "Usage: $0 <card #>" exit 1 ;; esac for port in $ilist do rm -f /dev/ttyi$port /dev/ttyo$port > /dev/null 2>&1 mknod /dev/ttyi$port c $major $iminor chmod a+w+r /dev/ttyi$port mknod /dev/ttyo$port c $major $ominor chmod a+w /dev/ttyo$port iminor=`expr $iminor + 1` ominor=`expr $ominor + 1` done for port in $Ilist do rm -f /dev/ttyi$port > /dev/null 2>&1 mknod /dev/ttyi$port c $major $Iminor chmod a+w+r /dev/ttyi$port Iminor=`expr $Iminor + 1` done rm -f /dev/icc >/dev/null 2>&1 mknod /dev/icc c $major 255 chmod a+w+r /dev/icc