Diagnostic Routine lspci in 0.8.2b1
Brought to you by:
christianrapp
Hello!
In the diagnostic routine it appears on OpenSuSE, that the lspci command can not be found. The reason is, that it needs to be prefixed with "/sbin/".
Maybe the "set lspci" could be a function to check if it needs to be prefixed. Or would it be possible to add a case where it just resets the variable to /sbin/lspci and reruns the diagnostic at this point. That the writeout case could just exit normally as it was intended?
Thank you very much!
Greetings,
WT
set lspci [auto_execok lspci] is not working on opensuse? strange I was sure it would work :) Ok i will see to it as soon as possible.
Thanks for reporting this
Hello!
This may work:
# Output of lspci. Which tv-card is recognized?
set lspci [auto_execok lspci]
set lspci2 [auto_execok /sbin/lspci]
if {[string trim $lspci] != {} || [string trim $lspci2] != {}} {
diag_writeOut $diag_file_append "
***********************************************************************
Lspcicheck:"
catch {exec sh -c "$lspci -v"} resultat_lspcicheck
catch {exec sh -c "$lspci2 -v"} resultat_lspcicheck
#checkFor 0 == check for Multimedia; 1 == check for Syubsystem:
set checkFor 0
The output in diagnostic routine reports.
Lspcicheck:
05:02.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
Subsystem: Hauppauge computer works Inc. WinTV PVR 150
When i run with this code.