projects
/
oweals
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d4103d
)
relayd: add uci validation
author
John Crispin
<john@openwrt.org>
Tue, 18 Feb 2014 13:34:12 +0000
(13:34 +0000)
committer
John Crispin
<john@openwrt.org>
Tue, 18 Feb 2014 13:34:12 +0000
(13:34 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 39623
package/network/services/relayd/files/relay.init
patch
|
blob
|
history
diff --git
a/package/network/services/relayd/files/relay.init
b/package/network/services/relayd/files/relay.init
index d73df6ab5522ab58a0d46f6b4137fdd54f4fa97e..e193312e6edd1fdd27534f6963892fbf0c37e366 100644
(file)
--- a/
package/network/services/relayd/files/relay.init
+++ b/
package/network/services/relayd/files/relay.init
@@
-6,6
+6,19
@@
START=80
USE_PROCD=1
PROG=/usr/sbin/relayd
+validate_proto_relayd()
+{
+ uci_validate_section network "interface" "${1}" \
+ 'network:list(string)' \
+ 'expiry:uinteger:30' \
+ 'retry:uinteger:5' \
+ 'table:range(0, 65535):16800' \
+ 'forward_bcast:bool:1' \
+ 'forward_dhcp:bool:1'
+
+ return $?
+}
+
resolve_ifname() {
grep -qs "^ *$1:" /proc/net/dev && {
procd_append_param command -I "$1"