[MPlayer-dev-eng] [PATCH] detection for Zoran cards

Moritz Bunkus moritz at bunkus.org
Tue Jan 4 20:50:32 CET 2005


Hey,

> Great, and how to find it? On SuSE it is not in the path...

if type -p lspci > /dev/null 2> /dev/null ; then
  lspci_bin=lspci
else
  for path in /sbin /usr/sbin /bin /usr/bin /usr/local/sbin /usr/local/bin ; do
    if text -x $path/lspci
      lspci_bin=$path/lspci
      break
    fi
  done
fi

if test -n $lspci_bin ; then
  # parse lspci output
elif test -f /proc/pci ; then
  # parse /proc/pci contents
fi

Or sth like that.

Mosu

-- 
If Darl McBride was in charge, he'd probably make marriage
unconstitutional too, since clearly it de-emphasizes the commercial
nature of normal human interaction, and probably is a major impediment
to the commercial growth of prostitution. - Linus Torvalds




More information about the MPlayer-dev-eng mailing list