luci-app-qmodem: fix scan ATI port OK message

This commit is contained in:
coolsnowwolf 2025-06-19 21:36:34 +08:00
parent 82f401bf05
commit d4621e1496
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-qmodem
LUCI_TITLE:=LuCI support for QWRT Modem
LUCI_PKGARCH:=all
PKG_VERSION:=2.8.0
PKG_VERSION:=2.8.1
PKG_LICENSE:=GPLv3
PKG_LINCESE_FILES:=LICENSE
PKG_MAINTAINER:=Tom <fjrcn@outlook.com>

View File

@ -318,7 +318,7 @@ validate_at_port()
[ ! -e "$dev_path" ] && continue
res=$(fastat $dev_path "ATI")
[ -z "$res" ] && continue
[[ "$res" != *"OK"* ]] && continue
!(echo "$res" | grep -qE 'OK') && continue
valid_at_port="$at_port"
[ -z "$valid_at_ports" ] && valid_at_ports="$valid_at_port" || valid_at_ports="$valid_at_ports $valid_at_port"
done