hostapd: ignore comment lines for hash comparison
Fixes spurious unnecessary bss restarts Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
097700771c
commit
db763342af
1 changed files with 5 additions and 1 deletions
|
@ -412,7 +412,11 @@ function bss_reload_rxkhs(bss, config, old_config)
|
|||
|
||||
function remove_file_fields(config)
|
||||
{
|
||||
return filter(config, (line) => !hostapd.data.file_fields[split(line, "=")[0]]);
|
||||
return filter(config, (line) =>
|
||||
!match(line, /^\s*$/) &&
|
||||
!match(line, /^\s*#/) &&
|
||||
!hostapd.data.file_fields[split(line, "=")[0]]
|
||||
);
|
||||
}
|
||||
|
||||
function bss_remove_file_fields(config)
|
||||
|
|
Loading…
Reference in a new issue