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); |