andys@shlepper.ATT.COM (andy sherman) (10/13/87)
Attached is a fix for CAPCTRL3.5 so that it will install correctly on 3.51. #! /bin/sh # This is a shell archive, meaning: # 1. Remove everything above the #! /bin/sh line. # 2. Save the resulting text in a file. # 3. Execute the file with /bin/sh (not csh) to create: # README # Size # Files # MKcpio # Install # This archive created: Wed Oct 7 10:38:58 1987 export PATH; PATH=/bin:/usr/bin:$PATH if test -f 'README' then echo shar: "will not over-write existing file 'README'" else cat << \SHAR_EOF > 'README' This file will fix CAPCTL3.5 from the STORE so that it will install under 3.51. To use it, have CAPCTRL3.5+IN in your /usr/spool/uucppublic/STORE directory, and then: 1) Unpack this shar archive into an empty directory 2) cpio -icvB </usr/spool/uucppublic/STORE/CAPCTRL3.5+IN (Note, you should get error messages that the Install, Size, and Files files were newer and not overwritten. If you don't, do not proceed.) 3) ./MKcpio 4) move the old version of CAPCTRL3.5+IN in /usr/spool/uucppublic/STORE to a safe place 5) mv CAPCTRL3.5+IN /usr/spool/uucppublic/STORE 6) Install the package as usual 7) Get rid of the safe copy of the old version 8) Massage your restored pinky :-) Good Luck Andy Sherman andys@shlepper.ATT.COM SHAR_EOF fi if test -f 'Size' then echo shar: "will not over-write existing file 'Size'" else cat << \SHAR_EOF > 'Size' 30 SHAR_EOF fi if test -f 'Files' then echo shar: "will not over-write existing file 'Files'" else cat << \SHAR_EOF > 'Files' Size Files Install MKflop MKcpio Name Remove kbd.o SHAR_EOF fi if test -f 'MKcpio' then echo shar: "will not over-write existing file 'MKcpio'" else cat << \SHAR_EOF > 'MKcpio' # this one just creates the installable cpio archive cat Files | cpio -ocvB >CAPCTRL3.5+IN SHAR_EOF chmod +x 'MKcpio' fi if test -f 'Install' then echo shar: "will not over-write existing file 'Install'" else cat << \SHAR_EOF > 'Install' # a simple script to load and unload driver 'kbd' for 7300 release 3.5 # S.Coffin 5/7/86 11/13/86 # original 3.0 version by Paul Fox, ATT-ISL DRIVER=kbd VER=`uname -v` if [ $VER != "3.47.0" -a $VER != "3.5" -a $VER != "3.51" ] ; then echo "You must have UNIX PC Release 3.5 to use this driver!" echo "Press ENTER to continue" read DUMMY exit 1 fi # move to right directory cp $DRIVER.o /etc/lddrv/$DRIVER.o # load it into master /etc/masterupd -a char init release open close $DRIVER # get major number assigned DD=`/etc/masterupd -c $DRIVER` if [ ! $DD ] ; then echo "Error: bad device load" /bin/rm -f /etc/lddrv/$DRIVER.o echo "Press ENTER to continue" read DUMMY exit 1 fi # create /dev/entry /etc/mknod /dev/$DRIVER c $DD 0 # fix up /etc/lddrv/InstDrv echo "Name=caplock/ctrl switch" >> /etc/lddrv/InstDrv echo "File=$DRIVER" >> /etc/lddrv/InstDrv echo "Comment=caps-lock/cntrl switch keyboard driver for 3.5" >> /etc/lddrv/InstDrv # now link it in -- for this kernel cd /etc/lddrv ./lddrv -av $DRIVER 2>/dev/null >/dev/null DD=$? if [ $DD -eq 0 ] ; then echo "$DRIVER driver loaded" else echo "potential error: $DRIVER load return $DD" fi # do we want to load it at boot? echo $DRIVER >> /etc/lddrv/drivers echo "Notes:" echo "\t1) The RIGHT ctrl key is now the caps lock key." echo "The LEFT ctrl and the caps lock keys now act as CTRL." echo "\t2) You cannot change the functions of these keys unless" echo "you remove the kbd driver package completely," echo "and then reboot the machine." echo "\t3) Report bugs and problems to S.Coffin, ATT-ISL." echo "Press ENTER to continue" read DUMMY SHAR_EOF fi exit 0 # End of shell archive -- Andy Sherman / AT&T Bell Laboratories (Medical Diagnostic Systems) 480 Red Hill Road / Middletown NJ 07748 / (201) 615-5708 UUCP: {ihnp4,allegra,akgua,cbosgd,mtune....}!shlepper!andys INTERNET: andys@shlepper.ATT.COM