contrib/package: allow pipe signs for service descriptions in olsrd init script
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 3 Aug 2009 18:30:07 +0000 (18:30 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 3 Aug 2009 18:30:07 +0000 (18:30 +0000)
contrib/package/olsrd-luci/files/etc/init.d/olsrd

index 9072fae..875800e 100755 (executable)
@@ -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
 }