#!/usr/bin/sh # "ihcp_install" # 4 November, 1999 # # # This script will install the pre-compiled Ikon # Pci Hardcopy driver under HPUX 11.x (mod.o must # exist in 32 or 64 bit form as appropriate for kernel) # # The script will do the following: # 1. Run kminstll -d to remove any old copy of the driver # 2. Run kminstall -a to install the driver components # 3. Run config to add the driver to the running kernel # 4. Remove any exitsing device nodes # 5. Create ihcp nodes in the /dev directory # 6. Add ihcp to /etc/loadmods so kernel will load at next reboot # uninstall previous version of driver (if any) kminstall -d ihcp # install driver components kminstall -a ihcp # configure driver into kernel config -M ihcp -u # remove old device nodes if any if [ -a /dev/ihcp* ] then rm /dev/ihcp* fi # get major number export major major=` lsdev -h -d ihcp | awk '{ print $1 }' ` echo ihcp major number is $major echo # scan for ihcp devices - save entries in temp file echo scanning for ihcp devices -- please wait... echo ioscan -fu | grep ihcp >ihcp_temp # make the nodes exec 3>/etc/loadmods # done echo echo done echo