This custom_probes file contains a probe and comparison function that tests for the presence of a TCX graphics card.
You can find additional examples of probe and comparison functions in:
/usr/sbin/install.d/chkprobe on a system that has Solaris installed
/Solaris_8/Tools/Boot/usr/sbin/install.d/chkprobe on the CD labeled Solaris 8 Software 1 of 2 SPARC Platform Edition or Solaris 8 Software 1 of 2 Intel Platform Edition
#!/bin/sh
#
# custom_probe script to test for the presence of a TCX graphics card.
#
#
# PROBE FUNCTIONS
#
probe_tcx() {
SI_TCX=`modinfo | grep tcx | nawk '{print $6}'`
export SI_TCX
}
#
# COMPARISON FUNCTIONS
#
cmp_tcx() {
probe_tcx
if [ "X${SI_TCX}" = "X${1}" ]; then
return 0
else
return 1
fi
}
|