qosmngr: fix unnamed uci section usages

This commit is contained in:
Suvendhu Hansa 2025-01-29 16:02:33 +05:30 committed by Vivek Kumar Dutta
parent 439e1ac346
commit 06ad490dd8
2 changed files with 5 additions and 3 deletions

View file

@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=qosmngr
PKG_VERSION:=1.0.18
PKG_VERSION:=1.0.19
LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/qosmngr.git
PKG_SOURCE_VERSION:=19c4b31eefe45bbbee2ba53f5394b5e32691451e
PKG_SOURCE_VERSION:=cc1d993b853f360c0aa19f08bfbaf1e05667527a
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MIRROR_HASH:=skip
endif

View file

@ -26,7 +26,9 @@ generate_queue(){
for i in $no_of_q; do
local order=$((total_q - i))
uci add qos queue
uci rename qos.@queue[-1]="q_${i}_${ifname}"
sec_name="q_${i}_${ifname}"
sec_name="$(echo $sec_name | sed -r 's/[.]+/_/g')"
uci rename qos.@queue[-1]="$sec_name"
uci set qos.@queue[-1].enable="1"
uci set qos.@queue[-1].ifname="$ifname"
uci set qos.@queue[-1].precedence="$order"