Sun Cobalt RaQ 550 support

2004-12-12
2012-12-12
  • I have tried to use phpsysinfo on a cobalt raq 550.

    Sun Linux was not supported, but It can be easily added by doing that :

    Add :

    elseif ($fd = fopen('/etc/cobalt-release', 'r')) {
          $buf = fgets($fd, 1024);
          fclose($fd);
          $result = trim($buf);}

    in Distro function.

    Add :

    } elseif (file_exists('/etc/cobalt-release')) {
          $result = 'Sun.gif';
       }

    In Distroicon function.

    Here you can see what i get :
    http://gandalf.homelinux.org/~phpsysinfo/

    I also had a look to sensors support. I have managed to include them into a php page but I don't know how to include them in phpsysinfo.

    http://gandalf.homelinux.org/~phpsysinfo/sensors.php

    <?php
    if ($fd = fopen('/proc/cobalt/faninfo', 'r')) {
          while (!feof ($fd)) {
          $buf = fgets($fd, 1024);
          $result = trim($buf);
          echo "$result\n<br>";
        }
          fclose($fd);
    }

    if ($fd = fopen('/proc/cobalt/sensors/thermal', 'r')) {
          while (!feof ($fd)) {
          $buf = fgets($fd, 1024);
          $result = trim($buf);
          echo "$result\n<br>";
        }
          fclose($fd);
    }

    if ($fd = fopen('/proc/cobalt/sensors/voltage', 'r')) {
          while (!feof ($fd)) {
          $buf = fgets($fd, 1024);
          $result = trim($buf);
          echo "$result\n<br>";
        }
          fclose($fd);
    }
    ?>

    I hope support for Cobalt RaQ will be added hehe ;)
    Let me know if you need some tests, my RaQ will be there.
    I can also get some feedback on older RaQ models.