Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2677 - (hide annotations) (download)
Mon Jul 11 14:03:08 2011 UTC (12 years, 11 months ago) by niro
Original Path: alx-src/branches/alx-web-060/include/hwinfo.php
File size: 268 byte(s)
-/sbin/alx-hwdetection -> /usr/sbin/alx-hwdetection
1 niro 2598 <?
2 niro 2603 include('common-functions.php');
3 niro 2598
4     if(isset($_POST['cmd']) && isset($_POST['ip'])) {
5     $ip = $_POST['ip'];
6     $cmd = $_POST['cmd'];
7    
8 niro 2677 $retval = sshdo('/usr/sbin/alx-hwdetection '.$cmd, $ip);
9 niro 2598 $driver = trim($retval[1]);
10     echo strtoupper($cmd)." Driver: ".$driver;
11     }
12     ?>