load system config file; document config options
[linksys-wrt3g-tools.git] / Wrt3g / Config.php
index f8b96492fe8620583c1ddd6a312d18256ceb949d..a8232df490456365706881d0d45757a67eb9dbec 100644 (file)
@@ -80,12 +80,17 @@ class Wrt3g_Config
      */
     public function load($options = array())
     {
+        //system config file
+        $this->loadFromFile('/etc/linksys-wrt3g-tools');
+
+        //user config file
         $file = $this->getConfigFilePath();
         if ($file) {
             $this->loadFromFile($file);
         }
         $this->loadOptions($options);
 
+        //commandline options
         if (isset($options['save'])) {
             $this->save($file);
         }