Menu

#101 Diagnostic Routine lspci in 0.8.2b1

0.8.2b1
open-accepted
Other (1)
5
2011-12-02
2011-12-01
wild-thing
No

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

Discussion

  • wild-thing

    wild-thing - 2011-12-01
    • milestone: --> 0.8.2b1
     
  • Christian Rapp

    Christian Rapp - 2011-12-02
    • status: open --> open-accepted
     
  • Christian Rapp

    Christian Rapp - 2011-12-02

    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

     
  • wild-thing

    wild-thing - 2011-12-14

    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

     
  • wild-thing

    wild-thing - 2011-12-14

    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.

     
MongoDB Logo MongoDB