Changeset 2847
- Timestamp:
- 07/25/10 10:45:29 (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oscam-http.c
r2843 r2847 2023 2023 char path[1035]; 2024 2024 2025 fp = popen("lsusb ", "r");2025 fp = popen("lsusb -v | egrep '^Bus|^ *iSerial|^ *iProduct'", "r"); 2026 2026 if (fp == NULL) { 2027 2027 tpl_addVar(vars, 0, "USBENTRY", "Failed to run lusb"); … … 2033 2033 if(!err) { 2034 2034 while (fgets(path, sizeof(path)-1, fp) != NULL) { 2035 tpl_printf(vars, 0, "USBENTRY", "%s", path); 2035 tpl_addVar(vars, 0, "USBENTRYCLASS", ""); 2036 if (strstr(path,"Bus ")) { 2037 tpl_printf(vars, 0, "USBENTRY", "%s", path); 2038 tpl_addVar(vars, 0, "USBENTRYCLASS", "CLASS=\"scanusbsubhead\""); 2039 } else { 2040 tpl_printf(vars, 0, "USBENTRY", " %s", path); 2041 } 2036 2042 tpl_addVar(vars, 1, "USBBIT", tpl_getTpl(vars, "SCANUSBBIT")); 2037 2043 } -
trunk/oscam-http.h
r2844 r2847 30 30 TR.usrcfg_anticasc TD {background-color:#FEF9BF;}\n\ 31 31 TR.usrcfg_cccam TD {background-color:#E6FEBF;}\n\ 32 TR.scanusbsubhead TD {background-color:#fdfbe1;}\n\ 32 33 DIV.log {border:1px dotted #AAAAAA; background-color: #FAFAFA; padding:10; font-family:\"Courier New\", monospace; color:#666666; font-size: 11px; word-wrap:break-word; text-align:left; }\n\ 33 34 DIV.sidlist {border:1px dotted #AAAAAA; background-color: #fffdf5; padding:2; font-family:\"Courier New\", monospace ; color:#666666; font-size: 11px; word-wrap:break-word; text-align:left;}\n\ … … 580 581 ##TPLFOOTER##" 581 582 582 #define TPLSCANUSBBIT "<TR ><TD>##USBENTRY##</TD></TR>\n"583 #define TPLSCANUSBBIT "<TR ##USBENTRYCLASS##><TD>##USBENTRY##</TD></TR>\n" 583 584 584 585 #define TPLENTITLEMENTS "\
Note:
See TracChangeset
for help on using the changeset viewer.