[openwrt/openwrt] netifd: fix bogus warnings in packet_steering init script
LEDE Commits
lede-commits at lists.infradead.org
Sat Apr 27 11:57:24 PDT 2024
nbd pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/994f71e0f06c6cbdfb21fc0bbc0777f40b90e7b4
commit 994f71e0f06c6cbdfb21fc0bbc0777f40b90e7b4
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Sat Apr 27 20:57:00 2024 +0200
netifd: fix bogus warnings in packet_steering init script
Avoids warnings if options are unset
Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
package/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. at globals[0].packet_steering")"
- steering_flows="$(uci get "network. at globals[0].steering_flows")"
+ packet_steering="$(uci -q get "network. at globals[0].packet_steering")"
+ steering_flows="$(uci -q get "network. at 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"
More information about the lede-commits
mailing list