#!/usr/bin/sh # May, 1996 File name = "ik_clean" # Requires one argument, the slot number 1, 2, or 3) # Also runs with argument 0 to remove IKN1110.CFG file # # Developed for use with HP-UX 10.10 - "converged I/O", this # script removes files and references to the ik3x0 driver for # removal or change of slot for an IKON printer controller card: case "$1" in 0) # Remove IKN1110.CFG file ONLY if removing all IKON boards. # Uses argument 0 to request this. rm /etc/eisa/IKN1110.CFG; rm /sbin/lib/eisa/!IKN1110.CFG; echo IKN1110.CFG file and link removed; exit 0;; [1-3] ) # a. Remove ik3x0 reference from the /stand/system file. grep -v "ik3${1}" /stand/system > tmpsys cp tmpsys /stand/system rm tmpsys # b. Remove ikon3x0 master file from /usr/conf/master.d rm /usr/conf/master.d/ikon3${1}0 # c. Remove device file /dev/ihcp(x-1). (( n = $1 -1 )) rm /dev/ihcp${n} # d. Remove library file from /usr/conf/lib. rm /usr/conf/lib/libik3${1}0.a echo echo ik_clean: removal of ik3${1}0 driver entries and files complete. echo echo If you want to rebuild the kernel to reflect the new configuration: echo echo EITHER: echo "If an ik3x0 driver is being added for a different EISA slot," echo "type "./ik_install *slot*", where *slot* is 1, 2, or 3." echo OR: echo "If no new ik3x0 drivers are being added, " echo "type "./ik_install 0" command to make the new kernel," echo echo THEN: echo "Reboot with the new kernel - thats all!";; *) # if entry not 0, 1, 2, or 3 echo echo Command Error - Needs argument 1, 2, or 3 for slot echo or argument 0 to remove IKN1110.CFG file. echo;; esac