diff options
| author | André Gaul | 2015-01-03 14:24:46 +0000 |
|---|---|---|
| committer | André Gaul | 2015-01-03 14:30:11 +0000 |
| commit | fe84974abbf5e39ade694e708a3611b003603902 (patch) | |
| tree | 003ffb21084f2ba72003e7168d7ab776bb6343e5 | |
| parent | 8c628398694bf0f25c80c7c8c6c154c632e98bcb (diff) | |
| download | routing-fe84974abbf5e39ade694e708a3611b003603902.tar.gz | |
[olsrd] adapt init script for 0.6.8 (PingCmd option)
olsrd 0.6.8 accepts a PingCmd parameter as of
http://olsr.org/git/?p=olsrd.git;a=commitdiff;h=0a26c52af3941eb9060b193cae5552f8d13fd28e.
The PingCmd is a string of the form "ping -c 1 -q %s" where %s is
replaced with an IP. This commit allows for '%' characters in an olsrd
option.
| -rw-r--r-- | olsrd/files/olsrd.init | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/olsrd/files/olsrd.init b/olsrd/files/olsrd.init index 887a4a2..5bee27a 100644 --- a/olsrd/files/olsrd.init +++ b/olsrd/files/olsrd.init @@ -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 } |