contrib/package: allow pipe signs for service descriptions in olsrd init script

This commit is contained in:
Jo-Philipp Wich 2009-08-03 18:30:07 +00:00
parent 86cd67ebc3
commit f637ea27ae

View file

@ -30,7 +30,7 @@ validate_ifname() {
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
}