aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-06-11 11:24:03 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-06-15 00:04:35 +0200
commit03a0b7b7e562290b9c74faf237e8ae0bd8a0cb3a (patch)
tree793b5c984e6f967dbe7ff6b8ff2570db1b9a0d8a /target
parent1461eabda39bab630c74e42926d54e3b31d9bb53 (diff)
downloadupstream-03a0b7b7e562290b9c74faf237e8ae0bd8a0cb3a.tar.gz
upstream-03a0b7b7e562290b9c74faf237e8ae0bd8a0cb3a.tar.bz2
upstream-03a0b7b7e562290b9c74faf237e8ae0bd8a0cb3a.zip
ramips: fix IPv4-only corner case in 01_enable_packet_steering
The uci config section network.globals set up in /bin/config_generate will only be created if /proc/sys/net/ipv6 exists. Correspondingly, lacking IPv6 support, the command uci set network.globals.packet_steering=1 will fail with "uci: Invalid argument" as the network.globals config has not been set up. Fix that by adding the setup there as well. Fixes: dfd62e575c6c ("ramips: enable packet steering by default on mt7621") Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ramips/mt7621/base-files/etc/uci-defaults/01_enable_packet_steering1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/ramips/mt7621/base-files/etc/uci-defaults/01_enable_packet_steering b/target/linux/ramips/mt7621/base-files/etc/uci-defaults/01_enable_packet_steering
index 6a77229f29..114c7e1a46 100644
--- a/target/linux/ramips/mt7621/base-files/etc/uci-defaults/01_enable_packet_steering
+++ b/target/linux/ramips/mt7621/base-files/etc/uci-defaults/01_enable_packet_steering
@@ -1,4 +1,5 @@
uci -q get network.globals.packet_steering > /dev/null || {
+ uci set network.globals='globals'
uci set network.globals.packet_steering=1
uci commit network
}