mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 05:38:00 +00:00
netifd: packet_steering: fix shell error on unset steering_flows option
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
994f71e0f0
commit
2d6fd937c3
@ -16,7 +16,7 @@ service_triggers() {
|
|||||||
reload_service() {
|
reload_service() {
|
||||||
packet_steering="$(uci -q get "network.@globals[0].packet_steering")"
|
packet_steering="$(uci -q get "network.@globals[0].packet_steering")"
|
||||||
steering_flows="$(uci -q get "network.@globals[0].steering_flows")"
|
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
|
if [ -e "/usr/libexec/platform/packet-steering.sh" ]; then
|
||||||
/usr/libexec/platform/packet-steering.sh "$packet_steering"
|
/usr/libexec/platform/packet-steering.sh "$packet_steering"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user