mirror of
https://git.openwrt.org/feed/routing.git
synced 2024-06-26 01:27:29 +02:00
Merge pull request #75 from andrenarchy/olsrd-fix-pingcmd
[olsrd] adapt init script for 0.6.8 (PingCmd option)
This commit is contained in:
commit
4bee4b5f7b
|
@ -38,7 +38,7 @@ validate_varname() {
|
|||
|
||||
validate_olsrd_option() {
|
||||
local str="$1"
|
||||
[ -z "$str" -o "$str" != "${str%%[! 0-9A-Za-z./|:_-]*}" ] && return 1
|
||||
[ -z "$str" -o "$str" != "${str%%[! 0-9A-Za-z.%/|:_-]*}" ] && return 1
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user