From 994f71e0f06c6cbdfb21fc0bbc0777f40b90e7b4 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 27 Apr 2024 20:57:00 +0200 Subject: [PATCH] netifd: fix bogus warnings in packet_steering init script Avoids warnings if options are unset Signed-off-by: Felix Fietkau --- .../network/config/netifd/files/etc/init.d/packet_steering | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/config/netifd/files/etc/init.d/packet_steering b/package/network/config/netifd/files/etc/init.d/packet_steering index ff4a39073b..19d423797a 100755 --- a/package/network/config/netifd/files/etc/init.d/packet_steering +++ b/package/network/config/netifd/files/etc/init.d/packet_steering @@ -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" -- 2.30.2