fff-network: Have WAN sysctl commands executing after global ones

On layer3 variant ("gateway firmware"), 60-fff-gateway.conf
changes "forwarding" for all interfaces, overwriting the
changes from 51-fff-network-$iface.conf.

By putting the WAN-specific commands after 60-fff-gateway.conf
this patch should provide the correct device-specific value
for WAN interface now.

Signed-off-by: Robert Langhammer <rlanghammer@web.de>
Reviewed-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
[Rephrased commit title and added message]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Robert Langhammer 2019-09-11 21:01:17 +02:00 committed by Adrian Schmutzler
parent cac9b55aa2
commit d989f435e6
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ setAutoConf() {
local iface=$1
local on=$2
sysctlfile="/etc/sysctl.d/51-fff-network-$iface.conf"
sysctlfile="/etc/sysctl.d/65-fff-network-$iface.conf"
echo "# Generated from configurenetwork" > "$sysctlfile"
echo "net.ipv6.conf.$iface.accept_ra = $on" >> "$sysctlfile"
echo "net.ipv6.conf.$iface.accept_ra_defrtr = $on" >> "$sysctlfile"