Solaris 8 のインストール (上級編)

custom_probes ファイルの例

この custom_probes ファイルには、TCX グラフィックスカードがあるかどうかをテストするプローブおよび比較関数が含まれます。


注 -

プローブおよび比較関数の追加例は、次の場所にあります。


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