1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2019-11-11 18:59:57 +01:00 committed by GitHub
commit 092705bbca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}