From 31c86132f5871117b468d947379847f9a6b41ba5 Mon Sep 17 00:00:00 2001
From: Jan-Philipp Litza <janphilipp@litza.de>
Date: Fri, 31 Mar 2017 07:51:52 +0200
Subject: [PATCH] gluon-radv-filterd: Remove all UCI options except threshold

---
 .../gluon-radv-filterd/files/etc/config/gluon-radv-filterd    | 2 --
 .../gluon-radv-filterd/files/etc/init.d/gluon-radv-filterd    | 4 +---
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/package/gluon-radv-filterd/files/etc/config/gluon-radv-filterd b/package/gluon-radv-filterd/files/etc/config/gluon-radv-filterd
index 32e1bbb90..7a7cdabad 100644
--- a/package/gluon-radv-filterd/files/etc/config/gluon-radv-filterd
+++ b/package/gluon-radv-filterd/files/etc/config/gluon-radv-filterd
@@ -1,4 +1,2 @@
 config filterd
-	option iface 'br-client'
-	option chain 'RADV_FILTER'
 	option threshold '20'
diff --git a/package/gluon-radv-filterd/files/etc/init.d/gluon-radv-filterd b/package/gluon-radv-filterd/files/etc/init.d/gluon-radv-filterd
index 8fc08b1eb..4e1bc1795 100755
--- a/package/gluon-radv-filterd/files/etc/init.d/gluon-radv-filterd
+++ b/package/gluon-radv-filterd/files/etc/init.d/gluon-radv-filterd
@@ -6,8 +6,6 @@ DAEMON=/usr/sbin/gluon-radv-filterd
 
 validate_filterd_section() {
     uci_validate_section gluon-radv-filterd filterd "${1}" \
-            'iface:string' \
-            'chain:string:RADV_FILTER' \
             'threshold:uinteger:20'
 }
 
@@ -21,7 +19,7 @@ start_filterd() {
     validate_filterd_section "$1"
 
     procd_open_instance
-    procd_set_param command $DAEMON -i "$iface" -c "$chain" -t $threshold
+    procd_set_param command $DAEMON -i br-client -c RADV_FILTER -t $threshold
     procd_set_param respawn ${respawn_threshold:-3600} ${respawn_timeout:-5} ${respawn_retry:-5}
     procd_set_param netdev br-client
     procd_set_param stderr 1
-- 
GitLab