Browse Source

gluon-radv-filterd: Remove all UCI options except threshold

Jan-Philipp Litza 7 years ago
parent
commit
3269b3a9ed

+ 0 - 2
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'

+ 1 - 3
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