この custom_probes ファイルには、TCX グラフィックスカードがあるかどうかをテストするプローブおよび比較関数が含まれます。
Solaris がインストールされたシステムの /usr/sbin/install.d/chkprobe
Solaris 8 SOFTWARE 1 of 2 CD (SPARC) または Solaris 8 SOFTWARE 1 of 2 CD (Intel) 上の /Solaris_8/Tools/Boot/usr/sbin/install.d/chkprobe
#!/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
}
|