diff --git a/README.md b/README.md index 4074d34f4f..e5b5d13e60 100755 --- a/README.md +++ b/README.md @@ -40,7 +40,9 @@ luci-theme-netgearv2 source: [tracemouse/luci-theme-netgear](https://github.com/ luci-app-serverchan source: [zxlhhyccc/luci-app-serverchan](https://github.com/zxlhhyccc/luci-app-serverchan).
OpenAppFilter source: [destan19/OpenAppFilter](https://github.com/destan19/OpenAppFilter).
luci-app-smartinfo source: [animefansxj/luci-app-smartinfo](https://github.com/animefansxj/luci-app-smartinfo).
-luci-app-koolproxy source: [Baozisoftware/luci-app-koolproxy](https://github.com/Baozisoftware/luci-app-koolproxy). +luci-app-koolproxy source: [Baozisoftware/luci-app-koolproxy](https://github.com/Baozisoftware/luci-app-koolproxy).
+luci-app-k3screenctrl source: [Hill-98/luci-app-k3screenctrl](https://github.com/Hill-98/luci-app-k3screenctrl).
+luci-app-smstool source: [f8q8/luci-app-smstool-master](https://github.com/f8q8/luci-app-smstool-master). # License ### [GPL v3](https://www.gnu.org/licenses/gpl-3.0.html). diff --git a/package/cnsztl/luci-app-smstool/Makefile b/package/cnsztl/luci-app-smstool/Makefile new file mode 100644 index 0000000000..113d5a93ba --- /dev/null +++ b/package/cnsztl/luci-app-smstool/Makefile @@ -0,0 +1,40 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=luci-app-smstool +PKG_VERSION=1.0 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) + +include $(INCLUDE_DIR)/package.mk + +define Package/luci-app-smstool + SECTION:=luci + CATEGORY:=LuCI + SUBMENU:=3. Applications + TITLE:=SMS Tool for 3G Modem + PKGARCH:=all +endef + +define Package/luci-app-smstool/description + This package contains sms tool for 3G Modem +endef + +define Build/Prepare +endef + +define Build/Configure +endef + +define Build/Compile +endef + +define Package/luci-app-smstool/install + $(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller + $(INSTALL_DIR) $(1)/usr/lib/lua/luci/view + $(INSTALL_DATA) ./files/usr/lib/lua/luci/controller/sms.lua $(1)/usr/lib/lua/luci/controller/sms.lua + $(INSTALL_DATA) ./files//usr/lib/lua/luci/view/sms.htm $(1)/usr/lib/lua/luci/view/sms.htm +endef + +$(eval $(call BuildPackage,luci-app-smstool)) + diff --git a/package/cnsztl/luci-app-smstool/files/usr/lib/lua/luci/controller/sms.lua b/package/cnsztl/luci-app-smstool/files/usr/lib/lua/luci/controller/sms.lua new file mode 100644 index 0000000000..0fd60cf882 --- /dev/null +++ b/package/cnsztl/luci-app-smstool/files/usr/lib/lua/luci/controller/sms.lua @@ -0,0 +1,10 @@ +module("luci.controller.sms", package.seeall) + +function index() + entry({"admin", "status", "sms"}, template("sms"), _("SMS Tool"), 100) +end + +function action_sms() + luci.template.render("sms") +end + diff --git a/package/cnsztl/luci-app-smstool/files/usr/lib/lua/luci/view/sms.htm b/package/cnsztl/luci-app-smstool/files/usr/lib/lua/luci/view/sms.htm new file mode 100644 index 0000000000..932d1601fb --- /dev/null +++ b/package/cnsztl/luci-app-smstool/files/usr/lib/lua/luci/view/sms.htm @@ -0,0 +1,14 @@ +<% + require "luci.util" + local sms = luci.util.exec("sms_tool recv") + local signal_strength = luci.util.exec("sms_tool status") +-%> + +<%+header%> +

<%:SMS%>

+Signal : <%=signal_strength:pcdata()%>
+
+ +
+<%+footer%> +