mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
map-agent: add missing uci validation and new cfg option to default
This commit is contained in:
parent
f8a0d6e54b
commit
8e1fc7dcb0
2 changed files with 3 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ config agent 'agent'
|
|||
|
||||
config dynamic_backhaul
|
||||
option missing_bh_timer '60'
|
||||
option missing_bh_reconfig_timer '1800'
|
||||
|
||||
config controller_select
|
||||
option id 'auto'
|
||||
|
|
|
|||
|
|
@ -187,6 +187,8 @@ validate_dyn_bh_section() {
|
|||
|
||||
uci_validate_section mapagent $section "${1}" \
|
||||
'missing_bh_timer:range(1,255)'
|
||||
uci_validate_section mapagent $section "${1}" \
|
||||
'missing_bh_reconfig_timer:range(0,65535)'
|
||||
|
||||
[ "$?" -ne 0 ] && {
|
||||
logger -s -t "mapagent" "Validation of dynamic backhaul section failed"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue