From: Jo-Philipp Wich Date: Mon, 3 Aug 2009 18:30:07 +0000 (+0000) Subject: contrib/package: allow pipe signs for service descriptions in olsrd init script X-Git-Tag: 0.10.0~1264 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f637ea27ae6e978702a024e6bd56c5583e626eee;p=oweals%2Fluci.git contrib/package: allow pipe signs for service descriptions in olsrd init script --- diff --git a/contrib/package/olsrd-luci/files/etc/init.d/olsrd b/contrib/package/olsrd-luci/files/etc/init.d/olsrd index 9072faebd..875800e75 100755 --- a/contrib/package/olsrd-luci/files/etc/init.d/olsrd +++ b/contrib/package/olsrd-luci/files/etc/init.d/olsrd @@ -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 }