- WRT54G3G
+Configuration
+-------------
+The tools can be configured in three ways:
+1. Commandline options
+ Use --help to get an overview
+
+2. User configuration file
+ ~/.config/linksys-wrt3g-tools
+
+3. System configuration file
+ /etc/linksys-wrt3g-tools
+
+The configuration files are normal ini-style files with key=value
+lines. Supported configuration options in the files are
+ - host
+ - user
+ - password
+
Dependencies
------------
*/
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);
}