qmodem: fix scan slot
This commit is contained in:
parent
9123eaf039
commit
767e387765
@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
PKG_NAME:=luci-app-qmodem
|
PKG_NAME:=luci-app-qmodem
|
||||||
LUCI_TITLE:=LuCI support for QWRT Modem
|
LUCI_TITLE:=LuCI support for QWRT Modem
|
||||||
LUCI_PKGARCH:=all
|
LUCI_PKGARCH:=all
|
||||||
PKG_VERSION:=2.3.1
|
PKG_VERSION:=2.3.2
|
||||||
PKG_LICENSE:=GPLv3
|
PKG_LICENSE:=GPLv3
|
||||||
PKG_LINCESE_FILES:=LICENSE
|
PKG_LINCESE_FILES:=LICENSE
|
||||||
PKG_MAINTAINER:=Tom <fjrcn@outlook.com>
|
PKG_MAINTAINER:=Tom <fjrcn@outlook.com>
|
||||||
|
@ -89,7 +89,7 @@ _scan_pcie()
|
|||||||
_mk_rundir()
|
_mk_rundir()
|
||||||
{
|
{
|
||||||
modem_cfg="$1"
|
modem_cfg="$1"
|
||||||
mkdir -p "/var/run/modem/${modem_cfg}_dir"
|
mkdir -p "/var/run/qmodem/${modem_cfg}_dir"
|
||||||
}
|
}
|
||||||
|
|
||||||
_try_slot()
|
_try_slot()
|
||||||
@ -108,7 +108,7 @@ _try_slot()
|
|||||||
if [ -d "$path" ]; then
|
if [ -d "$path" ]; then
|
||||||
logger -t modem_init "try modem $1"
|
logger -t modem_init "try modem $1"
|
||||||
procd_open_instance "try_$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
|
procd_close_instance
|
||||||
else
|
else
|
||||||
/usr/share/qmodem/modem_scan.sh disable "$slot"
|
/usr/share/qmodem/modem_scan.sh disable "$slot"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user