summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2024-04-27 20:57:00 +0200
committerFelix Fietkau <nbd@nbd.name>2024-04-27 20:57:19 +0200
commit994f71e0f06c6cbdfb21fc0bbc0777f40b90e7b4 (patch)
tree7af6d489e45e0b677299f0eff3805932da3672bd
parent7116d2f2b093559516a59a8c5037d3580f04534c (diff)
downloadopenwrt-994f71e0f06c6cbdfb21fc0bbc0777f40b90e7b4.tar.gz
openwrt-994f71e0f06c6cbdfb21fc0bbc0777f40b90e7b4.tar.bz2
openwrt-994f71e0f06c6cbdfb21fc0bbc0777f40b90e7b4.zip
netifd: fix bogus warnings in packet_steering init script
Avoids warnings if options are unset Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rwxr-xr-xpackage/network/config/netifd/files/etc/init.d/packet_steering4
1 files 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"