mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-30 01:52:51 +00:00
uspot: accouting: spell out config load failure
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
This commit is contained in:
committed by
John Crispin
parent
243f42454f
commit
b7f8c7e788
@@ -9,6 +9,13 @@ let uci = require('uci').cursor();
|
||||
let config = uci.get_all('uspot');
|
||||
let clients = {};
|
||||
|
||||
if (!config) {
|
||||
let log = 'uspot: failed to load config';
|
||||
system('logger ' + log);
|
||||
warn(log + '\n');
|
||||
exit(1);
|
||||
}
|
||||
|
||||
function acct_interval(interface) {
|
||||
return config[interface]?.acct_interval || 600;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user