#!/usr/bin/sh # "ihcp_install" # 18 May, 1998 # # This shell script will install the ihcp driver for the 10117 # Pci Hardcopy interface WITH DEBUGGING PRINTFs DISABLED # # It makes a new HP-UX 10.x kernel "/stand/build/vmunix_test". # # This script will do the following: # 1. Compile the ihcp_driver.c driver to its ihcp.o object. # 2. Archive the object to the /usr/conf/lib directory. # 3. Add the ihcp driver to the /stand/system file. # 4. Copy the ihcp master file to /stand/build/master.d. # 5. Generate a new vmunix_test kernel under /stand/build. # 6. Copy the new kernel to /stand/vmunix. echo # remove old ihcp.o (if any) to force compilation if [ -a ihcp.o ] then rm ihcp.o fi # compile ihcp_driver.c driver to create the object file. make -f ./ihcp_makefile # archive the object file to the proper library location. /usr/ccs/bin/ar -r /usr/conf/lib/libihcp.a ihcp.o # add ihcp driver to the /stand/system file if not there. /sbin/chmod 666 /stand/system grep ihcp /stand/system >./ihcp_temp # if ihcp not there, add it. if [[ ! -s ./ihcp_temp ]] then echo putting ihcp in /stand/system echo ihcp >> /stand/system echo fi /sbin/chmod 444 /stand/system if [ -a ./ihcp_temp ] then rm ./ihcp_temp fi # Copy ihcp master file to /usr/conf/master.d directory. cp ihcp /usr/conf/master.d # Make vmunix_test kernel in /stand/build. /usr/sbin/mk_kernel # Save the present kernel, if not previously saved. # Then copy the new /stand/build/vmunix_test to /stand/vmunix. if [[ ! -s /stand/vmunix.back ]] then cp /stand/vmunix /stand/vmunix.back cp /stand/build/vmunix_test /stand/vmunix else cp /stand/build/vmunix_test /stand/vmunix fi echo echo echo ihcp DRIVER INSTALL COMPLETE. IF NO ERROR MESSAGES, echo reboot to install the new kernel. The previous or original echo kernel is stored as "/stand/vmunix.back". echo echo Then cd to /IKON and run "./ihcp_mknod". echo;