[MPlayer-dev-eng] shell script for bug report
    Nilmoni Deb 
    ndeb at ece.cmu.edu
       
    Sat Apr 13 23:31:26 CEST 2002
    
    
  
Diego,
	Thanks for the usage message.
> OK, here's my version.  I added a usage message and removed the
> different lspci paths.  I (Debian woody) have lspci in /bin/lspci and
> symlinked to /sbin/lspci, so the info was added twice.  I believe that
> lspci should always be in the path, correct me if I am wrong.  Why did
I tried to make it failsafe. Looks like I screwed up. I have added
a break statement now:
for i in /sbin/lspci /usr/sbin/lspci /bin/lspci /usr/bin/lspci
/usr/local/bin/lspci /usr/local/sbin/lspci
        do
        if test -f $i ; then
                echo "_____________ $i -vv _______________"
                $i -vv
                break
        fi
done
I tested that this takes care of the problem.
Also, on one example suse system, lspci is in /sbin.
On mandrake, its /usr/bin/lspci .
> you put "#" on empty lines?
Just as an indicator that one block ends and another begins.
An ergonomic aid.
thanks
- Nil
    
    
More information about the MPlayer-dev-eng
mailing list