mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-13 11:01:50 +00:00
Merge pull request #9 from Ysurac/master
always type is "ping" for an "interface"
This commit is contained in:
commit
092705bbca
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ _validate_section() {
|
|||
'tries:uinteger' \
|
||||
'interval:uinteger' \
|
||||
'interval_tries:uinteger' \
|
||||
'type:string:ping' \
|
||||
'type:string:undef' \
|
||||
'enabled:bool:1' \
|
||||
'options:string'
|
||||
|
||||
|
@ -31,7 +31,7 @@ _validate_section() {
|
|||
[ -z "$interval" ] && interval=$tmp_interval
|
||||
[ -z "$interval_tries" ] && interval_tries=$tmp_interval_tries
|
||||
[ -z "$options" ] && options=$tmp_options
|
||||
[ -z "$type" ] && type=$tmp_type
|
||||
[ "$type" = "undef" ] && type=${tmp_type:-ping}
|
||||
[ -z "$enabled" ] && enabled=$tmp_enabled
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue