#!/usr/bin/sh # "ihcp_mknod" # 18 May, 1998 # # This script finds the major number assigned by the kernel to the ihcp driver, # finds each board entry using ioscan, and creates a device special file # for each board found echo # regenerate ioconfig file with new device ioinit -c # 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 ioscan -f | grep ihcp >ihcp_temp # make the nodes exec 3