@@ -1203,7 +1203,7 @@ ej_dump(int eid, webs_t wp, int argc, char_t **argv)
1203
1203
//csprintf("Script : %s, File: %s\n", script, file);
1204
1204
1205
1205
// run scrip first to update some status
1206
- if (strcmp (script ,"" ) ! =0 ) sys_script (script );
1206
+ if (strcmp (script ,"syscmd.sh" ) = =0 ) sys_script (script );
1207
1207
1208
1208
if (strcmp (file , "wlan11b.log" )== 0 )
1209
1209
return (ej_wl_status (eid , wp , 0 , NULL , 0 )); /* FIXME */
@@ -1232,14 +1232,6 @@ ej_dump(int eid, webs_t wp, int argc, char_t **argv)
1232
1232
return wl_wps_info (eid , wp , argc , argv , nvram_get_int ("wps_band_x" ));
1233
1233
#endif
1234
1234
}
1235
- #if 0
1236
- else if (strcmp (file , "apselect .log ")== 0 )
1237
- return (ej_getSiteSurvey (eid , wp , 0 , NULL ));
1238
- else if (strcmp (file , "apscan ")== 0 )
1239
- return (ej_SiteSurvey (eid , wp , 0 , NULL ));
1240
- else if (strcmp (file , "urelease ")== 0 )
1241
- return (ej_urelease (eid , wp , 0 , NULL ));
1242
- #endif
1243
1235
1244
1236
ret = 0 ;
1245
1237
@@ -1350,7 +1342,23 @@ ej_dump(int eid, webs_t wp, int argc, char_t **argv)
1350
1342
}
1351
1343
#endif /* RTCONFIG_DSL */
1352
1344
#endif /* RTCONFIG_PUSH_EMAIL */
1353
- else {
1345
+ else if (strcmp (file , "connect .log ")== 0 ) {
1346
+ sprintf (filename , "/tmp /%s ", file );
1347
+ system ("/usr/sbin/netstat-nat -r state -xn > /tmp/connect.log 2>&1" );
1348
+ ret += dump_file (wp , filename );
1349
+ }
1350
+ else if ( strcmp (file , "syscmd.log" )== 0
1351
+ || strcmp (file , "pptp_connected" )== 0
1352
+ || strcmp (file , "release_note0.txt" )== 0
1353
+ || strcmp (file , "release_note1.txt" )== 0
1354
+ || strcmp (file , "release_note.txt" )== 0
1355
+ #ifdef RTCONFIG_DSL
1356
+ || strcmp (file , "adsl/tc_fw_ver_short.txt" )== 0
1357
+ || strcmp (file , "adsl/tc_ras_ver.txt" )== 0
1358
+ || strcmp (file , "adsl/tc_fw_ver.txt" )== 0
1359
+ || strcmp (file , "adsl/adsllog.log" )== 0
1360
+ #endif
1361
+ ){
1354
1362
sprintf (filename , "/tmp/%s" , file );
1355
1363
ret += dump_file (wp , filename );
1356
1364
}
0 commit comments