File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -377,7 +377,9 @@ function showRaidState() {
377377 }
378378 else {
379379 $ data = unserialize ($ record ['data ' ]);
380- $ html .= nl2br ($ data ['output ' ]);
380+ // improve view @Author <info@typoworx.de>
381+ //-- $html .= nl2br($data['output']);
382+ $ html .= '<xmp> ' . $ data ['output ' ] . '</xmp> ' ;
381383 }
382384 $ html .= '</div></div> ' ;
383385
Original file line number Diff line number Diff line change @@ -1149,10 +1149,13 @@ public function monitorRaid() {
11491149 /*
11501150 * 3ware Controller
11511151 */
1152+
11521153 system ('which tw_cli ' , $ retval );
11531154 if ($ retval === 0 ) {
1154-
1155- $ data ['output ' ] = shell_exec ('tw_cli info c0 ' );
1155+
1156+ // TYPOWORX FIX | Determine Controler-ID
1157+ $ availableControlers = shell_exec ('tw_cli info | grep -Eo "c[0-9]+ ' );
1158+ $ data ['output ' ] = shell_exec ('tw_cli info ' . $ availableControlers );
11561159
11571160 $ state = 'ok ' ;
11581161 if (is_array ($ data ['output ' ])) {
You can’t perform that action at this time.
0 commit comments