tarina

git clone https://git.tarina.org/tarina
Log | Files | Refs | README | LICENSE

info (932B)


      1 # show information about card
      2 
      3 PRINT="CARDINFO:\n"
      4 PRINT="  CARDINFO{id}=\"$CARDINFO{id}\"\n"
      5 PRINT="  CARDINFO{card}=\"$CARDINFO{card}\"\n"
      6 PRINT="  CARDINFO{driver}=\"$CARDINFO{driver}\"\n"
      7 PRINT="  CARDINFO{name}=\"$CARDINFO{name}\"\n"
      8 PRINT="  CARDINFO{longname}=\"$CARDINFO{longname}\"\n"
      9 PRINT="  CARDINFO{mixername}=\"$CARDINFO{mixername}\"\n"
     10 PRINT="  CARDINFO{components}=\"$CARDINFO{components}\"\n"
     11 
     12 # sysfs stuff
     13 PRINT="sysfs:\n"
     14 ATTR{bus}=="*", PRINT="  ATTR{bus}=\"$ATTR{bus}\"\n"
     15 ATTR{class}=="*", PRINT="  ATTR{class}=\"$ATTR{class}\"\n"
     16 ATTR{driver}=="*", PRINT="  ATTR{driver}=\"$ATTR{driver}\"\n"
     17 ATTR{vendor}=="*", PRINT="  ATTR{vendor}=\"$ATTR{vendor}\"\n"
     18 ATTR{device}=="*", PRINT="  ATTR{device}=\"$ATTR{device}\"\n"
     19 ATTR{subsystem_vendor}=="*", \
     20   PRINT="  ATTR{subsystem_vendor}=\"$ATTR{subsystem_vendor}\"\n"
     21 ATTR{subsystem_device}=="*", \
     22   PRINT="  ATTR{subsystem_device}=\"$ATTR{subsystem_device}\"\n"