home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1994 February
/
psl_9403.zip
/
psl_9403
/
DOS
/
COMMUNIC
/
HA221B.ZIP
/
INSTALL.SCR
< prev
next >
Wrap
Text File
|
1993-11-02
|
14KB
|
646 lines
REM install.scr
REM script to install drivers for SCO Xenix/UNIX
REM and AT&T/Interactive UNIX
REM (c) 1990-93 Hansco Information Technologies, Inc.
REM
REM Revision History:
REM 2.21 - file transfer corrected when switching from
REM long block to short block mode -- blocks not
REM ACKed until written to disk
REM 2.2 - 'hboot' now stored in /tmp directory
REM changed 'CALL install' to 'GOSUB'
REM added DIM statement for some variables
REM 2.17a - Simplified options
REM Cleaned up screen messages
REM 2.17 - Removed disk free space check (Xenix 2.3.4
REM seems to have changed its df command output)
REM Replaced with warning message
REM 2.15 - Minor fix for IntelliPort II
REM Improved WordPerfect install to prompt for
REM .trs directory
REM 2.14c - Fix screen during local print install
REM Execute /usr/bin/tic to compile terminfo entry
REM Warning about replacing 'ansi' entries
REM 2.14b - Auxiliary script files merged in
REM 2.12b - Fixed bug in Computone support
REM 2.12 - Driver file names changed
REM terminfo support
REM Computone IntelliPort II support
REM Changed sco check to oem=3000
REM 2.11 - Assign default value to {os} variable
REM so error message looks reasonable
REM Improved method for detecting Unix
REM Added VP/ix support for AT&T/Interactive
REM 2.1 - Now uses HBOOT to load drivers over
REM
DIM ft 1 ansi 1 m1 1 m2 1 m3 10 inst 1
DIM P 2 code 2 ver 4 dver 4 td 4
SCREEN OFF
ON BREAK GOTO a1
LET prod = HIT/Ansi
LET ver = 2.21
LET dver = 2.21
LET os = Xenix/Unix
LET td = /tmp
LET P = #{SP}
TIMEOUT 5
SEND {CR}
EXPECT {P}
IF {err} <> 0 GOTO n1
LET ans = 2
SEND uname | grep -cy "xenix"{CR}
EXPECT {LF}
READ os
IF {os} = 1 GOTO r3
EXPECT {P}
SEND uname | grep -cy "unix"{CR}
EXPECT {LF}
READ os
IF {os} <> 1 GOTO r3
EXPECT {P}
SEND uname -a | grep -cy "oem=3000"{CR}
EXPECT {LF}
READ ans
IF {ans} = 0 LET ans = 4
IF {ans} = 1 LET ans = 3
:r3
SCREEN ON
GOTO t1
:p1
GOSUB ihd
ECHO {SP} {prod} has detected installation onto an {ma} {os} system.
ECHO
ECHO {SP} Select an option:
ECHO {SP} (1) Operating System correct
ECHO {SP} (2) Select SCO Xenix
ECHO {SP} (3) Select SCO Unix
ECHO {SP} (4) Select AT&T/Interactive Unix
ECHO
DISPLAY {SP} Enter your choice:{SP}
INPUT ans
IF {err} <> 0 GOTO a1
:t1
IF {ans} = 1 GOTO r1
IF {ans} = 2 GOTO u1
IF {ans} = 3 GOTO u2
IF {ans} = 4 GOTO u3
ECHO
ECHO
ECHO {SP} Invalid option selected.{07}
WAIT 3
GOTO p1
:u1
LET os = Xenix
LET ma = SCO
GOTO p1
:u2
LET os = Unix{SP}
LET ma = SCO
GOTO p1
:u3
LET os = Unix{SP}
LET ma = AT&T/Interactive
GOTO p1
:r1
LET ft = N
LET ansi = N
GOSUB ihd
ECHO
ECHO {SP} Select an option:
ECHO {SP} (1) Install All Drivers
ECHO {SP} (2) Install File Transfer only
ECHO {SP} (3) Install {os} Console Drivers only
ECHO {SP} (4) Exit
ECHO
DISPLAY {SP} Enter your choice:{SP}
INPUT ans
IF {err} <> 0 GOTO a1
IF {ans} = 1 LET ft = Y
IF {ans} = 1 LET ansi = Y
IF {ans} = 2 LET ft = Y
IF {ans} = 3 LET ansi = Y
IF {ans} = 4 GOTO l8
IF {ft} = Y GOTO r2
IF {ansi} = Y GOTO r2
ECHO
ECHO
ECHO {SP} Invalid option selected.{07}
WAIT 3
GOTO r1
:r2
GOSUB ihd
ECHO
ECHO {SP} The following options will be installed:
ECHO
IF {ft} = Y ECHO {SP} File Transfer
IF {ansi} = Y ECHO {SP} {os} Console Drivers
ECHO
ECHO {TB}NOTE: Installation of the above options requires approximately
ECHO {TB} 1000 blocks of disk space on the {os} system.
ECHO {TB} You may press ESC to abort the installation now.
ECHO
DISPLAY {SP} Are the above options correct? (y/n){SP}
INPUT ans
IF {err} <> 0 GOTO a1
IF {ans} = y GOTO d1
IF {ans} = Y GOTO d1
GOTO r1
:d1
LET m1 = N
LET m2 = N
LET m3 = N
CLS
SCREEN OFF
EXPECT {P}
SEND stty -echo{CR}
GOSUB ich
SCREEN OFF
IF {err} <> 0 GOTO n3
IF {ansi} <> Y GOTO l6
REM
REM Begin WordPerfect 5.0
REM
LET F = /usr/wp
:WP1
EXPECT {P}
SEND [ -d "{F}/sdata" -a -w "{F}/sdata" ] ; echo $?{CR}
LET ans = {SP}
READ ans
IF {ans} = 0 GOTO WP2
EXPECT {P}
SEND [ -d "{F}/slib" -a -w "{F}/slib" ] ; echo $?{CR}
LET ans = {SP}
READ ans
IF {ans} = 0 GOTO WP3
SCREEN ON
ECHO
DISPLAY Is WordPerfect 5.0 installed on the {os} system? (y/n){SP}
INPUT ans
ECHO
SCREEN OFF
IF {err} <> 0 GOTO a1
IF {ans} = y GOTO WP6
IF {ans} <> Y GOTO l1
:WP6
SCREEN ON
ECHO
ECHO Please enter the {os} directory where WordPerfect
ECHO terminal definition files (files ending in .trs)
DISPLAY are installed: (example: /usr/wp/data){SP}
INPUT F
ECHO
SCREEN OFF
IF {err} <> 0 GOTO a1
EXPECT {P}
SEND [ -d "{F}" -a -w "{F}" ] ; echo $?{CR}
LET ans = {SP}
READ ans
IF {ans} = 0 GOTO WP4
GOTO WP1
:WP2
LET F = {F}/sdata
GOTO WP4
:WP3
LET F = {F}/slib
:WP4
LET S = wp50.dvr
LET G = ansi.trs
GOSUB ild
IF {err} <> 0 GOTO l1
LET ansi = I
REM
REM End WordPerfect 5.0
REM
:l1
IF {ma} = SCO LET G = ansi
IF {ma} <> SCO LET G = AT386
LET F = /usr/vpix/term
EXPECT {P}
SEND [ -d "{F}" -a -w "{F}" ] ; echo $?{CR}
LET ans = {SP}
READ ans
IF {ans} <> 0 GOTO l2
GOSUB isv
IF {err} <> 0 GOTO l2
LET S = vpix.dvr
LET F = /usr/vpix/term
GOSUB ild
IF {err} <> 0 GOTO l2
IF {ma} <> SCO GOTO l1a
LET G = ansic
GOSUB isv
IF {err} <> 0 GOTO l2
EXPECT {P}
SEND ln /usr/vpix/term/ansi /usr/vpix/term/ansic{CR}
:l1a
LET ansi = I
:l2
EXPECT {P}
SEND [ -w "/etc/mscreencap" ] ; echo $?{CR}
LET ans = {SP}
READ ans
IF {ans} <> 0 GOTO l3
GOSUB iin
IF {err} <> 0 GOTO l3
LET S = mscrncap.dvr
LET F = {td}
LET G = {S}
GOSUB ild
IF {err} <> 0 GOTO l3
SCREEN ON
DISPLAY Installing mscreen support...{SP}{SP}
SCREEN OFF
EXPECT {P}
SEND {td}/install.sh -n {prod} "multiscreen driver" {ver} /etc/mscreencap mscrncap.dvr{CR}
LET dvr = multiscreen
GOSUB igc
IF {err} <> 0 GOTO l3
SCREEN ON
ECHO OK
SCREEN OFF
LET ansi = I
:l3
EXPECT {P}
SEND [ -d "/usr/lib/terminfo" ] ; echo $?{CR}
READ ans
IF {ans} <> 0 GOTO l4
LET S = terminfo.dvr
LET F = /usr/lib/terminfo
LET G = ansimrg.src
GOSUB ild
IF {err} <> 0 GOTO l4
LET F = /usr/lib/terminfo
LET G = a/ansi
GOSUB isv
IF {err} <> 0 GOTO l4
LET F = /usr/lib/terminfo
LET G = a/ansic
GOSUB isv
IF {err} <> 0 GOTO l4
EXPECT {P}
SEND [ -x "/usr/bin/tic" ] ; echo $?{CR}
READ ans
IF {ans} <> 0 GOTO l4
SCREEN ON
DISPLAY Compiling new terminfo entries...{SP}{SP}
SCREEN OFF
EXPECT {P}
SEND /usr/bin/tic /usr/lib/terminfo/ansimrg.src ; echo $?{CR}
READ ans
IF {ans} = 0 GOTO l3a
SCREEN ON
ECHO ERROR OCCURRED ({ans})
SCREEN OFF
GOTO l4
:l3a
SCREEN ON
ECHO OK
SCREEN OFF
LET m1 = Y
LET ansi = I
:l4
EXPECT {P}
SEND [ -w "/etc/termcap" ] ; echo $?{CR}
READ ans
IF {ans} <> 0 GOTO l5
GOSUB iin
IF {err} <> 0 GOTO l5
LET S = termcap.dvr
LET F = {td}
LET G = {S}
GOSUB ild
IF {err} <> 0 GOTO l5
LET F = /etc
LET G = termcap
GOSUB isv
IF {err} <> 0 GOTO l5
SCREEN ON
DISPLAY Installing termcap lprint support...{SP}{SP}
SCREEN OFF
EXPECT {P}
SEND {td}/install.sh -n {prod} "local printer driver" {ver} /etc/termcap termcap.dvr "^sd|du|"{CR}
LET dvr = local{SP}printer
GOSUB igc
IF {err} <> 0 GOTO l5
SCREEN ON
ECHO OK
SCREEN OFF
LET m2 = Y
LET ansi = I
:l5
EXPECT {P}
SEND [ -w "/etc/default/fip.d/intellicap" ] ; echo $?{CR}
READ ans
IF {ans} = 0 GOTO l5b
EXPECT {P}
SEND [ -w "/etc/ic_master" ] ; echo $?{CR}
READ ans
IF {ans} <> 0 GOTO l6
GOSUB iin
IF {err} <> 0 GOTO l6
LET S = icmaster.dvr
LET F = {td}
LET G = {S}
GOSUB ild
IF {err} <> 0 GOTO l6
SCREEN ON
DISPLAY Installing Computone sup