aboutsummaryrefslogtreecommitdiff
path: root/Wrt3g/Config.php
diff options
context:
space:
mode:
Diffstat (limited to 'Wrt3g/Config.php')
-rw-r--r--Wrt3g/Config.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/Wrt3g/Config.php b/Wrt3g/Config.php
index f8b9649..a8232df 100644
--- a/Wrt3g/Config.php
+++ b/Wrt3g/Config.php
@@ -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);
}