From: Felix Fietkau Date: Sat, 27 Apr 2024 18:57:00 +0000 (+0200) Subject: netifd: fix bogus warnings in packet_steering init script X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=994f71e0f06c6cbdfb21fc0bbc0777f40b90e7b4;p=openwrt%2Fstaging%2Fdangole.git netifd: fix bogus warnings in packet_steering init script Avoids warnings if options are unset Signed-off-by: Felix Fietkau --- 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"