Solaris 8 Advanced Installation Guide

Example of a custom_probes File

This custom_probes file contains a probe and comparison function that tests for the presence of a TCX graphics card.


Note -

You can find additional examples of probe and comparison functions in:


#!/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
}