netifd: fix bogus warnings in packet_steering init script
authorFelix Fietkau <nbd@nbd.name>
Sat, 27 Apr 2024 18:57:00 +0000 (20:57 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sat, 27 Apr 2024 18:57:19 +0000 (20:57 +0200)
Avoids warnings if options are unset

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/config/netifd/files/etc/init.d/packet_steering

index ff4a39073bd2568a32a98333ea984733d9c20b98..19d423797a936446228b759999c161ca69ca8195 100755 (executable)
@@ -14,8 +14,8 @@ service_triggers() {
 }
 
 reload_service() {
-       packet_steering="$(uci get "network.@globals[0].packet_steering")"
-       steering_flows="$(uci get "network.@globals[0].steering_flows")"
+       packet_steering="$(uci -q get "network.@globals[0].packet_steering")"
+       steering_flows="$(uci -q get "network.@globals[0].steering_flows")"
        [ "$steering_flows" -gt 0 ] && opts="-l $steering_flows"
        if [ -e "/usr/libexec/platform/packet-steering.sh" ]; then
                /usr/libexec/platform/packet-steering.sh "$packet_steering"