Magellan Linux

Diff of /alx-src/branches/alx-web-070/include/hwinfo.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 7105 by niro, Mon Sep 7 10:50:48 2015 UTC revision 7106 by niro, Wed Sep 9 08:43:18 2015 UTC
# Line 18  if(isset($_POST['cmd']) && isset($_POST[ Line 18  if(isset($_POST['cmd']) && isset($_POST[
18   $printers = str_replace('/dev/ttyS1','com2:',$printers);   $printers = str_replace('/dev/ttyS1','com2:',$printers);
19   echo strtoupper($cmd).": ".$printers;   echo strtoupper($cmd).": ".$printers;
20   }   }
21     else if ( $cmd == 'rootfs' )
22     {
23     $retval = @sshdo('cat /proc/mounts | grep -v "^rootfs" | grep " / " | cut -d" " -f3', $ip); $rootfs = trim($retval[1]);
24     echo "Root Filesystem Type: ".$rootfs;
25     }
26   else   else
27   {   {
28   $retval = @sshdo('/usr/sbin/alx-hwdetection '.$cmd, $ip);   $retval = @sshdo('/usr/sbin/alx-hwdetection '.$cmd, $ip);

Legend:
Removed from v.7105  
changed lines
  Added in v.7106