Changeset 10725 in hybrid for branches/releng-9.0/nanobsd
- Timestamp:
- May 8, 2012, 6:11:40 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/releng-9.0/nanobsd/files/usr/local/www/wlportal/index.cgi
r10724 r10725 58 58 'tmpl_login' : '/usr/local/etc/wlportal/login.tmpl', 59 59 'whitelist' : [], 60 'config_file ' : '/usr/local/etc/wlportal/config.yaml',60 'config_files' : ['/usr/local/etc/wlportal/config.yaml','/etc/wleiden.yaml'], 61 61 'expire_time' : None, 62 62 'accessdb' : '/var/db/clients', … … 67 67 # No failback if config does not exist, to really make sure the user knows if 68 68 # the config file failed to parse properly or is non-existing 69 if os.path.isfile(cfg['config_file']): 70 cfg.update(yaml.load(open(cfg['config_file']))) 69 for config_file in cfg['config_files']: 70 if os.path.isfile(config_file): 71 cfg.update(yaml.load(open(config_file))) 71 72 72 73 internet_up = True
Note:
See TracChangeset
for help on using the changeset viewer.