Index: /branches/releng-9.0/nanobsd/files/usr/local/www/wlportal/index.cgi
===================================================================
--- /branches/releng-9.0/nanobsd/files/usr/local/www/wlportal/index.cgi	(revision 10724)
+++ /branches/releng-9.0/nanobsd/files/usr/local/www/wlportal/index.cgi	(revision 10725)
@@ -58,5 +58,5 @@
   'tmpl_login'    : '/usr/local/etc/wlportal/login.tmpl',
   'whitelist'     : [],
-  'config_file'   : '/usr/local/etc/wlportal/config.yaml',
+  'config_files'  : ['/usr/local/etc/wlportal/config.yaml','/etc/wleiden.yaml'],
   'expire_time'   : None,
   'accessdb'      : '/var/db/clients',
@@ -67,6 +67,7 @@
 # No failback if config does not exist, to really make sure the user knows if
 # the config file failed to parse properly or is non-existing
-if os.path.isfile(cfg['config_file']):
-  cfg.update(yaml.load(open(cfg['config_file'])))
+for config_file in cfg['config_files']:
+ if os.path.isfile(config_file):
+   cfg.update(yaml.load(open(config_file)))
 
 internet_up = True
