summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2024-04-27 20:59:43 +0200
committerFelix Fietkau <nbd@nbd.name>2024-04-27 20:59:52 +0200
commit2d6fd937c36bf3d8991b0fd9f6d845fab18af790 (patch)
tree7aa3233876edf452f4d796215a105ce8fcf88be2
parent994f71e0f06c6cbdfb21fc0bbc0777f40b90e7b4 (diff)
downloadopenwrt-2d6fd937c36bf3d8991b0fd9f6d845fab18af790.tar.gz
openwrt-2d6fd937c36bf3d8991b0fd9f6d845fab18af790.tar.bz2
openwrt-2d6fd937c36bf3d8991b0fd9f6d845fab18af790.zip
netifd: packet_steering: fix shell error on unset steering_flows option
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rwxr-xr-xpackage/network/config/netifd/files/etc/init.d/packet_steering2
1 files changed, 1 insertions, 1 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 19d423797a..5266a931ae 100755
--- a/package/network/config/netifd/files/etc/init.d/packet_steering
+++ b/package/network/config/netifd/files/etc/init.d/packet_steering
@@ -16,7 +16,7 @@ service_triggers() {
reload_service() {
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"
+ [ "${steering_flows:-0}" -gt 0 ] && opts="-l $steering_flows"
if [ -e "/usr/libexec/platform/packet-steering.sh" ]; then
/usr/libexec/platform/packet-steering.sh "$packet_steering"
else