|
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 - download
Length: 6906 (0x1afa) Types: TextFile Notes: UNIX file Names: »ub«
└─⟦8c4f54e61⟧ Bits:30004068/disk2.imd Interactive TCP/IP v.1.2 └─⟦8c4f54e61⟧ UNIX Filesystem └─⟦this⟧ »hb/new/usr/admin/menu/packagemgmt/tcpipmgmt/hbtcpmgmt/ub«
#help# #help# Selecting this menu item will configure the #help# Ungermann-Bass PC NIC board into the system #menu# Ungermann-Bass PC NIC # #ident "@(#)ub 2.8 90/01/31" # The following is an installation script for use with System V, Release 3 # using either linkable or installable device drivers. # # This script does the following: # -- Finds the current major numbers and driver configuration parameters. # -- Asks the user if the major numbers need changing. # -- If yes, it prompts for new major numbers and modifies the driver # config files as appropriate. # -- Asks the user if the driver configuration parameters needs changing. # -- If the system requires any driver config parameters to be changed, it # modifies the space.c and config file. # -- Checks for conflicts on the interrupt vector set in the previous # steps; if one is found then a bunch of instructions on how to # proceed are written to the screen. # -- Adds the driver(s) to the kernel configuration files. # -- If necessary, changes netd.cf for the driver. # -- Removes any existing special files and create the special files # (devices) required by HBTCP. # -- Calls kconfig to build a kernel if the user wants to. changed=no CONFDIR=/etc/conf SDEVICEDIR=${CONFDIR}/sdevice.d SDEVICE=${CONFDIR}/cf.d/sdevice T1=/tmp/il1.$$ DNAME=ub TEMPF=/tmp/$DNAME.$$ TEMPSDEV=/tmp/sdev.$DNAME.$$ LOCNAME=`uname -n` NAME=PC-NIC export T1 CONFDIR NAME DNAME LOCNAME TEMPF # Set trap after variables defined trap "rm -f ${T1:-/tmp/il?.*} ${TEMPF}; exit 3" 2 3 15 flags="-qq -k$$" # Stop right now if for some reason the file is not there. if [ ! -f ${SDEVICEDIR}/$DNAME ] then echo "Cannot find configuration file ${SDEVICEDIR}/$DNAME, aborting." exit 1 fi cp ${SDEVICEDIR}/$DNAME ${TEMPSDEV} # Get the configuration current values set `awk '/'$DNAME'/ {print $6, $7, $8, $9, $10 }' ${TEMPSDEV}` irqvec=$1; stioa=$2; endioa=$3; shbase=$4; endshbase=$5 cat <<EOF INTERACTIVE UNIX Host Based TCP/IP Software Installation UNIX System V Release 3 Version EOF # # Offer the user a chance to change the interrupt vector line # cat <<EOF $NAME Hardware Configuration The $DNAME driver is currently configured with the following $NAME hardware settings: Interrupt Request Line (IRQ) $irqvec Shared Memory Start Address 0x$shbase Shared Memory End Address 0x$endshbase EOF echo "Do you want to use the current IRQ value [ Yes ]? \c" read ans case "${ans:-Yes}" in [nN]*) oirq=$irqvec; changed=yes; echo " " while true do echo "Please enter the IRQ value for the board [ $oirq ]: \c" read irqvecx; irqvec=${irqvecx:-$oirq} case "$irqvec" in [3-7]) break ;; *) echo "\nOnly 3 through 7 are valid \c" echo "interrupt levels for the $NAME board." ;; esac done awk '/'$DNAME'/ { OFS="\t";$6="'$irqvec'" ; print $0 }' ${TEMPSDEV} > ${TEMPF} irqlev=$irqvec mv ${TEMPF} ${TEMPSDEV} echo " " ;; esac echo "Do you want to use the current Controller Shared Memory address range [ Yes ]? \c" read ans case "${ans:-Yes}" in [nN]*) oio=$shbase; changed=yes; while true do echo "Please enter the Start Shared Memory address for the board [ $oio ]: \c" read shbasex; shbase=${shbasex:-$oio} case "$shbase" in [0-9a-fA-F]*) break ;; *) echo The Shared Memory Base address must be specified in hexadecimal ;; esac done awk '/'$DNAME'/ { OFS="\t";$9="'$shbase'" ; print $0 }' ${TEMPSDEV} > $TEMPF mv $TEMPF ${TEMPSDEV} oio=$endshbase; changed=yes; while true do echo "Please enter the End Shared Memory address for the board [ $oio ]: \c" read shbasex; endshbase=${shbasex:-$oio} case "$endshbase" in [0-9a-fA-F]*) break ;; *) echo The End Shared Memory address must be specified in hexadecimal ;; esac done awk '/'$DNAME'/ { OFS="\t";$10="'$endshbase'" ; print $0 }' ${TEMPSDEV} > $TEMPF mv $TEMPF ${TEMPSDEV} echo " " ;; esac # # check for conflicts in the interrupt vector # echo echo "Checking for interrupt vector conflicts - please wait" echo match=n > $T1 cat ${SDEVICEDIR}/* | awk '{ if ( $1 != "'$DNAME'" && $2 != "N" && $6 == "'$irqvec'" ) { printf "matchdev=%s\n",$1 print "match=y" } } ' >> $T1 chmod +x $T1 . $T1 /bin/rm $T1 case "${match:-No}" in [yY]*) cat <<EOF There is a conflict with the device $matchdev on interrupt level $irqvec. Please resolve this conflict by changing the interrupt request line of either the conflicting device or the $NAME board. If you are changing the interrupt vector and corresponding request line for the conflicting device, you can continue with the installation and make the modifications to the other device configuration after the TCP/IP installation is complete. If you are changing the interrupt vector and request line for the $NAME board then you will need to do the following: 1 Abort this installation. 2 Change the IRQ jumper on the $NAME board to the desired IRQ level to reflect the desired IRQ level. 3 Restart this installation script by executing sysadm, giving the correct value for the interrupt level when asked by the script. This conflict must be resolved before the new kernel can be executed. Please refer to the INTERACTIVE UNIX TCP/IP software and $NAME hardware installation manuals for more detailed instructions on changing the interrupt vector. Please interrupt this script (usually the DEL key) to abort the installation or hit carriage return to continue. EOF read junk ;; esac # Set the driver to be configured awk '/'$DNAME'/ { OFS="\t"; $2="Y" ; print $0 }' ${TEMPSDEV} > ${TEMPF} mv ${TEMPF} ${TEMPSDEV} # # Set up the official sdev file # mv ${TEMPSDEV} ${SDEVICEDIR}/$DNAME echo "\nNew ${SDEVICEDIR}/$DNAME file is:" cat ${SDEVICEDIR}/$DNAME echo "" # # Add driver to kernel description file and kernel configuration file # if fgrep "$NAME Ethernet Driver" /etc/conf/kconfig.d/description >/dev/null 2>&1 then : echo $NAME Ethernet Driver already in description file. else cat >> /etc/conf/kconfig.d/description <<! ub - - hbtcp - Ungermann-Bass PC NIC Ethernet Driver llc - - hbtcp - Link level protocol pseudo driver ! fi # # change /etc/netd.cf to use DNAME # set the hostname in /etc/netd.cf # cp /usr/admin/menu/packagemgmt/tcpipmgmt/hbtcpmgmt/_netd.cf /etc/netd.cf chmod 755 /etc/netd.cf ed - /etc/netd.cf > /dev/null <<-EOF g/DEV/s//$DNAME/g g/local_site_name/s//$LOCNAME/ w q EOF if checkyn ${flags} -f "Do you wish to build a new kernel at this time?" then sh runlevel /etc/kconfig -r / fi /bin/rm -f ${TEMPF} ${TEMPSDEV} $T1 exit 0