This is an old revision of the document!


Configuration Parameters

A list of all existing configuration parameters including default values can be found under /etc/config/factory-config.cfg. The user config is defined as all changes relative to the factory configuration. The current user config can be found under /etc/config/user-config.cfg <php> echo “<html>”; echo “<table>”; echo “<tr><th>Key</th><th>Factory Deafult</th><th>Range</th></tr>”; $lines = file(“data/media/nrsw/factory-config.txt”); foreach ($lines as $line_num ⇒ $line) {

if  (substr($line, 0, 1) === "#") { 
  echo "</table>";
  echo "<h2> $line </h2>"; 
  echo "<table><tr><th>Key</th><th>Factory Deafult</th><th>Range</th></tr>";
  $fields = preg_split('/=/', $line); // split at '=' => key, value 
  if (count($fields) >= 2) {
    $key = $fields[0];
    $val = $fields[1];
    echo "<tr>";
    echo "<td>". $key . "</td>";
    echo "<td>". $val . "</td>";
    echo "</tr>";
  } 
}

} echo “</table>”; echo “</html>”; </php>