mirror of
https://github.com/openwrt/openwrt.git
synced 2025-04-08 03:44:59 +00:00
netifd: fix bogus warnings in packet_steering init script
Avoids warnings if options are unset Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
7116d2f2b0
commit
994f71e0f0
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user