diff options
author | Felix Fietkau <nbd@nbd.name> | 2024-04-27 20:57:00 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2024-04-27 20:57:19 +0200 |
commit | 994f71e0f06c6cbdfb21fc0bbc0777f40b90e7b4 (patch) | |
tree | 7af6d489e45e0b677299f0eff3805932da3672bd | |
parent | 7116d2f2b093559516a59a8c5037d3580f04534c (diff) |
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-x | package/network/config/netifd/files/etc/init.d/packet_steering | 4 |
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" |