mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-04-01 00:07:09 +00:00
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: dfd62e575c
("ramips: enable packet steering by default on mt7621")
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
parent
1461eabda3
commit
03a0b7b7e5
@ -1,4 +1,5 @@
|
|||||||
uci -q get network.globals.packet_steering > /dev/null || {
|
uci -q get network.globals.packet_steering > /dev/null || {
|
||||||
|
uci set network.globals='globals'
|
||||||
uci set network.globals.packet_steering=1
|
uci set network.globals.packet_steering=1
|
||||||
uci commit network
|
uci commit network
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user