mediatek: fix IPv4-only corner case and commit in 99-net-ps
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 16 Jun 2020 12:46:42 +0000 (14:46 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 16 Jun 2020 12:46:42 +0000 (14:46 +0200)
commit636b62e8e232951154ac4ccd7972fda3f8de0379
treeb3839a1a48b6d6c876b44e6eb64f70eb4d40546f
parent866ad466626e6a83831f79e9dd072c31a2b71d66
mediatek: fix IPv4-only corner case and commit in 99-net-ps

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.

While at it, limit the uci commit to the network config file.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/mediatek/base-files/etc/uci-defaults/99-net-ps