0707070000020307201006440000000000000000011353450404253404500000500000000003Size70 0707070000020304461006660000020000020000040062640000017757000001400000000045CMB232.menu#sccs "@(#)combobrd:CMB232.menu 1.1" 0707070000020304451007550000020000020000040062430000017757000001200000017030CMB232.sh#sccs "@(#)combobrd:CMB232.sh 1.9" # CMB232.sh # PURPOSE: Configure the expansion RS-232 ports. # CALLED BY: RS232 # REQUIRED FILES: RS232.form # ------------------------------------------------------------------------- ERROR1="An error has been encountered in an RS232 form file.\n Please notify AT&T User Support. Thank you." ERROR2="The command provided was not recognized.\nPlease use Enter, Cancel, or a defined function key." ERROR3="Currently there is no RS-232 expansion board installed. Please try again after the board is installed." ERROR4="Expansion driver not loaded or this port is currently being used by another communication program and cannot be used with a terminal. Please try again later." MESS1="The RS232 port is now set up. \n\nPlease press Enter to continue." TERMCAP= export TERMCAP while true do RET=`shform -u $UA/CMB232.menu` if [ "$?" != "0" ] then message $ERROR3 exit fi eval set $RET case $1 in Enter) case $2 in "Port 1") TTY=001 TTYNUM=1 ;; "Port 2") TTY=002 TTYNUM=2 ;; "Port 3") TTY=003 TTYNUM=3 ;; "Port 4") TTY=004 TTYNUM=4 ;; "Port 5") TTY=005 TTYNUM=5 ;; "Port 6") TTY=006 TTYNUM=6 ;; esac # OLDTYPE is used to store the value of the type so that it can # be compared to the TYPE newly selected. OLDTYPE='NONE' SPEED=9600 INCOME='HOST only' TYPE='NONE' # get the data from /etc/.rs232 if [ -s /etc/.rs232_$TTY ] then . /etc/.rs232_$TTY if [ "$TYPE" = 'PRINTER' ] then RSfree.sh $TTY if [ "$?" != "0" ] then exit fi INCOME='HOST only' SPEED=9600 NAME= fi fi # store the value of TYPE before the user makes any new selection OLDTYPE="$TYPE" # check Hardware Flow Control configuration HFCINIT=/etc/daemons/tty$TTY.init if [ -x $HFCINIT ] then HFC=Yes else HFC=No fi export TYPE NAME SPEED INCOME OLDTYPE HFC while true do clear RET=`shform -u $UA/RS232a.form` if [ "$?" != "0" ] then message $ERROR1 exit fi BAD= eval set $RET case $1 in # Executable code for the "enter" option follows here Enter) shift /etc/lddrv/cmbpcnt -o /dev/tty$TTY if [ \( "$?" != "0" \) -a \( $TYPE != "NONE" \) ] then message $ERROR4 exit fi RSfree.sh $TTY noconfirm if [ "$?" != "0" ] ; then exit ; fi TYPE=$1 SPEED=$2 HFC=$3 case $TYPE in NONE) ;; COMPUTER) while true do clear RET=`shform -u $UA/RS232e.form` if [ "$?" != "0" ] then message $ERROR1 exit fi eval set $RET if [ "$1" = "Help" ] then /usr/bin/uahelp -h /usr/lib/ua/admin.hlp -t "RS232 Setup" elif [ "$1" != "Enter" ] then exit elif [ true ] then RET2=$2 set $2 if [ "$1" != "HOST" ] then echo "DIR tty$TTY 0 $SPEED" >> /usr/lib/uucp/L-devices fi if [ "$1" != "CALLER" ] then grep -v "$TTY:.*getty" /etc/inittab > /tmp/init$$ mv /tmp/init$$ /etc/inittab echo " $TTY:2:respawn:/etc/getty tty$TTY $SPEED" >> /etc/inittab telinit q fi INCOME=$RET2 break fi clear done ;; MODEM) while true do clear if [ -n "`find /usr/lib/uucp/modemcap -newer $UA/RS232d.form -print`" ] then grep -v Name= $UA/RS232d.form >/tmp/RS232d.form$$ mv /tmp/RS232d.form$$ $UA/RS232d.form echo "Name=Answer_only" >> $UA/RS232d.form grep '^#' /usr/lib/uucp/modemcap|grep Name=|cut -dN -f2-|sort|sed 's/ame/Name/' >> $UA/RS232d.form fi RET=`shform -u $UA/RS232d.form` if [ "$?" != "0" ] then message $ERROR1 exit fi eval set $RET if [ "$1" = "Help" ] then /usr/bin/uahelp -h /usr/lib/ua/admin.hlp -t "RS232 Setup" elif [ "$1" != "Enter" ] then exit elif [ true ] then if [ "$2" != "Answer_only" ] then echo "ACU tty$TTY $2 $SPEED" >> /usr/lib/uucp/L-devices INCOME="BOTH HOST and CALLER" else INCOME='HOST only' fi NAME=$2 grep -v "$TTY:.*getty" /etc/inittab > /tmp/init$$ mv /tmp/init$$ /etc/inittab echo " $TTY:2:respawn:/etc/getty tty$TTY $SPEED" >> /etc/inittab telinit q break fi clear done ;; TERMINAL) NAME= INCOME="HOST only" grep -v "$TTY:.*getty" /etc/inittab > /tmp/init$$ mv /tmp/init$$ /etc/inittab echo " $TTY:2:respawn:/etc/getty tty$TTY $SPEED" >> /etc/inittab telinit q clear ;; OTHER) while true do clear RET=`shform -u $UA/RS232b.form` if [ "$?" != "0" ] then message $ERROR1 exit fi RET2=$2 eval set $RET if [ "$1" = "Help" ] then /usr/bin/uahelp -h /usr/lib/ua/admin.hlp -t "RS232 Setup" elif [ "$1" != "Enter" ] then exit elif [ true ] then RET2=$TMP NAME=$2 RET3=$3 set $3 if [ "$1" != "HOST" ] then echo "DIR tty$TTY 0 $SPEED" >> /usr/lib/uucp/L-devices fi if [ "$1" != "CALLER" ] then grep -v "$TTY:.*getty" /etc/inittab > /tmp/init$$ mv /tmp/init$$ /etc/inittab echo " $TTY:2:respawn:/etc/getty tty$TTY $SPEED" >> /etc/inittab telinit q fi INCOME=$RET3 break fi clear done ;; esac cat >/etc/.rs232_$TTY <>/etc/.rs232_$TTY </dev/null 2>&1 echo "/etc/hfc_ctl +/dev/tty$TTY" >$HFCINIT chmod +x $HFCINIT . $HFCINIT fi fi clear message -iu $MESS1 break ;; # This is the help screen Help) /usr/bin/uahelp -h /usr/lib/ua/admin.hlp -t "RS232 Setup" ;; # This is the Exit code if command is cancelled Cancel) exit ;; # Unrecognizable return from action key *) message $ERROR2 ;; # End of main case based on the action key esac clear done ;; # This is the help screen Help) /usr/bin/uahelp -h /usr/lib/ua/admin.hlp -t "Expanded RS232" ;; # This is the Exit code if command is cancelled Cancel) exit ;; # Unrecognizable return from action key *) message $ERROR2 ;; # End of main case based on the action key esac clear done # ------------------------------------------------------------------------- # EXECUTABLE PROGRAM ENDS HERE CMBdevice.sh # ========================================================================= 0707070000020034571006440000020000020000031531250000017757000000600000000333Files./etc/lddrv/cmb.o ./etc/lddrv/cmb.rc ./etc/lddrv/cmbpcnt ./etc/lddrv/cmbupd ./usr/bin/CMB232.sh ./usr/install/CMB/Files ./usr/install/CMB/Install ./usr/install/CMB/Name ./usr/install/CMB/Remove ./usr/lib/ua/CMB232.menu 0707070000020304501007550000020000020000020062670000017757000001000000005242Install#sccs "@(#)combobrd:Install 1.8" # #*************************************************************************** # # Install script for RS-232 Expansion board. # 6/85 - C. Liu # #*************************************************************************** # ERROR1="RS-232 Expansion software already installed.\n\n Please remove the current version of software before attempting to install software again.\n" fgrep "RS232 Expansion Setup" $UA/Hardware > /tmp/t if [ -s /tmp/t ] then message $ERROR1 rm -f /tmp/t exit 64 fi rm -f /tmp/t echo echo ' Installing RS-232 expansion software ...' echo LIST1="/usr/lib/ua/CMB232.menu /usr/bin/CMB232.sh" LIST2="001 002 003 004 005 006" cp ./cmb.o /etc/lddrv cp ./cmb.rc /etc/lddrv cp ./cmbpcnt /etc/lddrv cp ./cmbupd /etc/lddrv cp ./CMB232.sh /usr/bin ln /etc/lddrv/cmb.rc /etc/lddrv/cmb.brc touch /usr/lib/ua/CMB232.menu for i in $LIST1 do chown bin $i chgrp bin $i chmod 755 $i done # # Update the master file in /etc/master. # echo ' Updating Systems files ...' echo masterupd -a init release cmb # # Create the new device entries # echo ' Creating entries for the new ports ...' echo /etc/mknod /dev/tty001 c 0 2 /etc/mknod /dev/tty002 c 0 3 /etc/mknod /dev/tty003 c 0 4 /etc/mknod /dev/tty004 c 0 5 /etc/mknod /dev/tty005 c 0 6 /etc/mknod /dev/tty006 c 0 7 chmod a+w /dev/tty001 chmod a+w /dev/tty002 chmod a+w /dev/tty003 chmod a+w /dev/tty004 chmod a+w /dev/tty005 chmod a+w /dev/tty006 # # Add the new entries into the /etc/inittab table. - RWL 3/13/86 # for i in $LIST2 do grep -v ":$i:2:respawn:" /etc/inittab > /tmp/inittab echo ":$i:2:respawn:/etc/getty tty$i 9600" >> /tmp/inittab mv /tmp/inittab /etc/inittab echo "TYPE='NONE'" > /etc/.rs232_$i chmod 777 /etc/.rs232_$i done chmod 644 /etc/inittab # # load the driver # echo ' Loading the driver software ...' echo cd /etc/lddrv ./lddrv -a cmb ./cmb.rc # cmb.rc did a /usr/lib/lpshut /usr/lib/lpsched echo "cmb" >> ./drivers # # Notify phone manager that the combo board is installed. # ./cmbupd # # Append a new entry in the Hardware setup menu # echo ' Updating Administration files ...' echo cat >> /tmp/Hardware << -END- Name = RS232 Expansion Setup Expert Default = Open Open = SH -pwd /usr/bin/CMB232.sh Help = EXEC -d /usr/bin/uahelp -h /usr/lib/ua/admin.hlp -t "Expanded RS232" -END- uaupd -r "RS232 Expansion Setup" -a /tmp/Hardware Hardware rm -f /tmp/Hardware grep "File[ ]*=[ ]*cmb" /etc/lddrv/InstDrv > /dev/null if [ $? != 0 ] then cat >> /etc/lddrv/InstDrv << -END- Name=RS232 Expansion File=cmb Comment=RS232 Expansion software -END- fi # # done # echo echo ' Installation of RS-232 software completed.' echo 0707070000020304511006440000020000020000020062770000017757000000500000000026NameRS-232 EXPANSION 3.51 0707070000020304521007550000020000020000020063000000017757000000700000006137Remove#sccs "@(#)combobrd:Remove 1.8" # #*************************************************************************** # # Remove script for RS-232 Expansion board. # 6/85 - C. Liu # #*************************************************************************** # echo echo ' Removing RS-232 expansion software' echo cp /etc/inittab /tmp/oldinittab LIST="001 002 003 004 005 006" for TTY in $LIST do setgetty $TTY 0 sleep 2 done echo ' Unloading the driver from the system ...' echo /etc/lddrv/lddrv -s|grep cmb>/dev/null if [ "$?" = "0" ] then /etc/lddrv/lddrv -d cmb if [ "$?" != "0" ] then clear message -iu "Expansion ports are in use, please ask the users to logoff before removing the software. \n\nPress Enter to continue." mv /tmp/oldinittab /etc/inittab exit 64 fi fi cp /etc/inittab /tmp/initcmb for i in $LIST do grep -v "$i:.*getty" /tmp/initcmb > /tmp/initcmb$i mv /tmp/initcmb$i /tmp/initcmb done mv /tmp/initcmb /etc/inittab telinit q sleep 5 echo ' Deleting support files ...' echo rm -f /etc/.rs232_00* # disable Hardware Flow Control and delete init files for TTY in $LIST do rm -f /etc/daemons/tty$TTY.init /etc/hfc_ctl -/dev/tty$TTY >/dev/null 2>&1 done rmdir /etc/daemons >/dev/null 2>&1 # # remove possible printers that are connected to the expansion ports # echo ' Removing printers ...' echo ' The lp scheduler will be temporarily shutdown!' echo CLASS="Serial1 Serial2 Serial3 Serial4 Serial5 Serial6" /usr/lib/lpshut 2>&1 > /dev/null sleep 3 # Remove all jobs attached to the expansion-ports-printers. This is # necessary in order for the disabled printers to be removed by lpadmin. for i in $CLASS do if [ -s /usr/spool/lp/class/$i ] then CLASSPTR=`cat /usr/spool/lp/class/$i` cancel `lpstat -o"$i $CLASSPTR" | cut -f1 -d" "` 2>&1 > /dev/null fi done # if the default printer is attached to an expansion port, remove it. if [ -s /usr/spool/lp/default ] then DEFAULT=`cat /usr/spool/lp/default` for i in $CLASS do if [ -s /usr/spool/lp/class/$i ] then CLASSPTR=`cat /usr/spool/lp/class/$i` if [ "$DEFAULT" = "$CLASSPTR" ] then /usr/lib/lpadmin -d 2>&1 > /dev/null fi fi done fi # remove the printers that are in the expansion ports. for i in $CLASS do if [ -s /usr/spool/lp/class/$i ] then CLASSPTR=`cat /usr/spool/lp/class/$i` /usr/lib/lpadmin -x$CLASSPTR 2>&1 > /dev/null fi done /usr/lib/lpsched # # signal phmgr that combo card is being removed. # /etc/lddrv/cmbupd rm -f /etc/lddrv/*cmb /etc/lddrv/cmb* rm -f /usr/bin/CMB232.sh /usr/lib/ua/CMB232.menu echo ' Updating system files ...' echo uaupd -r "RS232 Expansion Setup" Hardware masterupd -d cmb fgrep -v cmb /etc/lddrv/drivers > /tmp/temp mv /tmp/temp /etc/lddrv/drivers fgrep -v "RS232 Expansion" /etc/lddrv/InstDrv >/tmp/temp fgrep -v cmb /tmp/temp >/tmp/temp2 mv /tmp/temp2 /etc/lddrv/InstDrv rm -f /tmp/temp # # Remove the device entries # echo ' Deleting device files of the new ports ...' echo rm -f /dev/tty001 /dev/tty002 /dev/tty003 /dev/tty004 /dev/tty005 /dev/tty006 echo ' Removal of RS-232 expansion software Complete' echo 0707070000020304421007550000020000020000040062400000017757000000600000023377cmb.oR \ L .text L .data @.bss  NVH<|#&# ##H#tvBn(`p0"|IJf ,fJ,f ,fp0"| t*qz`lp0"| Ep0"|#0RCr2 Ҁ | A,0RBr2 |!%M%MA%H URyRE Ee0.Rnr2 |AC Cd RD De ydL<|N^Nu###Np./< NXO`NVH$|N-@$9g"&y(y` 4۷e&| SJf######@#.NLN^NuNVH< (|v`80H"|$q0*>Hr€f*EgL< N^NuRCyeN-@v` n0 n00RCH"|-qfp./< NXO$9g"&y*y` 8۷e&| SJf#####3.N`:NVH$nN4 N4N4 N4N n !n4 N .4N4N4N4N4N4 N4 LN^NuNVH<4. v0HUJjDD`:0@8BfD |J0 f | 0 |J0@f | 0@p0"|$qH5@L)   @(#) combobrd:combobrd.sl 1.36  fg $i*.k48mRnopqA6q@rPATBZA^CdAhDv|s@uvwxyz@wx:{;@|@x{}*y:pZrlqtuA~vwx@zyw:xy|; {q}6u@JT^r.AvD9LAb_99BoBBBoB B"C*2o8@CHPCX`Chpov~CCDoDDDoDD Zdnzv{v|xvx|z*4<oT   @ = G  H I J K L  M $N (O ,P 0Q 4R 8S <T @U DV HW LX PY TZ X[ \\ `] d^ h l p.file0gcmbinit.c.text@[.data .bss .text@5.data .bss loopJendintagain.text<.data .bss SR1.SR2:SR3FsrjoinRnotixonstdxvxonseenxoffseenRX3RX1RX2return Dxoncnt\ST1ST2ST3ST4ST5ST6ST7ST8TX1 TX9 TX3 6.file9gid.c.text L.data  .bss SCCS_ID fmyintexp_int expintr@exp_addr exp_tty #@-exp1addrexp2addrexp3addrvectsave vectab tx8274dst8274drx8274dsr8274dtx8274cst8274crx8274csr8274ctx8274flst8274frx8274f\sr8274fztx8274e.st8274eLrx8274esr8274e<tx8274hst8274hrx8274hsr8274htx8274gst8274grx8274gsr8274g7 hexpaddr tB intclk cmbinitOprog8530&ZdoyHslotsser_addrpser_ttyser_cntuset_intspl6outptreserbufserbufinptrbserbufsplxclr_intsdelayPlserrintsertintserxintserxoffserixonsercdserctsserixany)expcommonoldeserbufoldfulbufserexpbufslotchanBslotvectabexpserspdtblinitexpbufpprog8530pexpsertblexpclkselpexpclkselexpsaveisrpexpsaveisrexpunsaveisrpexpunsaveisrcmbreleaseserbufcntserbuffulser_portsrx8274exptx8274expsr8274expst8274expserinprogressserinxoffsertxblkd0707070000020304411007550000020000020000041547260000017757000000700000004343cmb.rc#sccs "@(#)combobrd:cmb.rc 1.4" LIST1="001 002 003 004 005 006" LIST2="003 004 005 006" LIST3="005 006" /etc/lddrv/cmbpcnt -c RET="$?" case $RET in 0) LIST=$LIST1 ;; 2) LIST=$LIST2 ;; 4) LIST=$LIST3 ;; 6) LIST="" ;; esac cp /etc/inittab /tmp/initcmb cp /usr/lib/uucp/L-devices /tmp/L-cmbs /usr/lib/lpshut > /dev/null for i in $LIST do grep -v "$i:.*getty" /tmp/initcmb > /tmp/initcmb$i mv /tmp/initcmb$i /tmp/initcmb grep -v "tty$i" /tmp/L-cmbs > /tmp/L-cmbs$i mv /tmp/L-cmbs$i /tmp/L-cmbs if test -s /etc/.rs232_$i then . /etc/.rs232_$i /usr/lib/lpadmin -x$NAME 2> /dev/null fi rm -f /etc/.rs232_$i done mv /tmp/initcmb /etc/inittab mv /tmp/L-cmbs /usr/lib/uucp/L-devices cat >/usr/lib/ua/CMB232.menu </usr/lib/ua/CMB232.menu < /etc/.rs232_001 < /etc/.rs232_002 <>/usr/lib/ua/CMB232.menu < /etc/.rs232_003 < /etc/.rs232_004 <>/usr/lib/ua/CMB232.menu < /etc/.rs232_005 < /etc/.rs232_006 <=<;:9876543210/.2~}|{zyxwvutsrqponmlkjihgfedcba`222'&%$#"!      2YXWVUTSRQPONMLKJIHGFEDCBA@?>=<;:9876543210/.-,+*)(2~}|{zyxwvutsrqponmlkjihgfedcba`_^]\[Z