luci-app-qmodem: combine luci-app-qmodem_with_lua_index_page in prebuild ipk
This commit is contained in:
parent
b52ceeea10
commit
cf6eb249e3
@ -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.6.1
|
PKG_VERSION:=2.6.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>
|
||||||
@ -30,7 +30,6 @@ LUCI_DEPENDS:=+luci-compat \
|
|||||||
+PACKAGE_luci-app-qmodem_USE_TOM_CUSTOMIZED_QUECTEL_CM:quectel-CM-5G-M \
|
+PACKAGE_luci-app-qmodem_USE_TOM_CUSTOMIZED_QUECTEL_CM:quectel-CM-5G-M \
|
||||||
+PACKAGE_luci-app-qmodem_USING_QWRT_QUECTEL_CM_5G:quectel-CM-5G \
|
+PACKAGE_luci-app-qmodem_USING_QWRT_QUECTEL_CM_5G:quectel-CM-5G \
|
||||||
+PACKAGE_luci-app-qmodem_USING_NORMAL_QUECTEL_CM:quectel-cm \
|
+PACKAGE_luci-app-qmodem_USING_NORMAL_QUECTEL_CM:quectel-cm \
|
||||||
+luci-app-qmodem_with_lua_index_page \
|
|
||||||
+tom_modem \
|
+tom_modem \
|
||||||
+jq +bc\
|
+jq +bc\
|
||||||
+coreutils +coreutils-stat
|
+coreutils +coreutils-stat
|
||||||
@ -75,17 +74,6 @@ endchoice
|
|||||||
default n
|
default n
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/luci-app-qmodem_with_lua_index_page
|
|
||||||
TITLE:= QWRT Modem with Lua Luci Index Page
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/luci-app-qmodem_with_lua_index_page/install
|
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/view/admin_status/index
|
|
||||||
if [ ! -f $(TOPDIR)/feeds/luci/package.json ]; then \
|
|
||||||
$(INSTALL_DATA) ./files/modem_overview.htm $(1)/usr/lib/lua/luci/view/admin_status/index/; \
|
|
||||||
fi
|
|
||||||
endef
|
|
||||||
|
|
||||||
include $(TOPDIR)/feeds/luci/luci.mk
|
include $(TOPDIR)/feeds/luci/luci.mk
|
||||||
$(eval $(call BuildPackage,luci-app-qmodem_with_lua_index_page))
|
|
||||||
# call BuildPackage - OpenWrt buildroot signature
|
# call BuildPackage - OpenWrt buildroot signature
|
||||||
|
@ -14,5 +14,9 @@ uci -q batch <<-EOF >/dev/null
|
|||||||
commit ucitrack
|
commit ucitrack
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
if [ -f /www/luci-static/resources/luci.js ]; then
|
||||||
|
rm -f /usr/lib/lua/luci/view/admin_status/index/modem_overview.htm
|
||||||
|
fi
|
||||||
|
|
||||||
rm -rf /tmp/luci-*cache
|
rm -rf /tmp/luci-*cache
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user