qmodem: fix scan slot

This commit is contained in:
fujr 2024-10-20 13:57:04 +08:00
parent 9123eaf039
commit 767e387765
2 changed files with 3 additions and 3 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.3.1
PKG_VERSION:=2.3.2
PKG_LICENSE:=GPLv3
PKG_LINCESE_FILES:=LICENSE
PKG_MAINTAINER:=Tom <fjrcn@outlook.com>

View File

@ -89,7 +89,7 @@ _scan_pcie()
_mk_rundir()
{
modem_cfg="$1"
mkdir -p "/var/run/modem/${modem_cfg}_dir"
mkdir -p "/var/run/qmodem/${modem_cfg}_dir"
}
_try_slot()
@ -108,7 +108,7 @@ _try_slot()
if [ -d "$path" ]; then
logger -t modem_init "try modem $1"
procd_open_instance "try_$1"
procd_set_param command "ash" "/usr/share/modem/modem_scan.sh" "add" "$slot" "$type"
procd_set_param command "ash" "/usr/share/qmodem/modem_scan.sh" "add" "$slot" "$type"
procd_close_instance
else
/usr/share/qmodem/modem_scan.sh disable "$slot"