mirror of
https://github.com/kenzok8/small-package.git
synced 2026-02-08 07:37:13 +08:00
update-09.24
This commit is contained in:
17
luci-app-ramfree/Makefile
Normal file
17
luci-app-ramfree/Makefile
Normal file
@@ -0,0 +1,17 @@
|
||||
# Copyright (C) 2018 Lienol
|
||||
#
|
||||
# This is free software, licensed under the Apache License, Version 2.0 .
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
LUCI_TITLE:=Add Release RAM Button
|
||||
LUCI_PKGARCH:=all
|
||||
PKG_VERSION:=1.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
include $(TOPDIR)/feeds/luci/luci.mk
|
||||
|
||||
# call BuildPackage - OpenWrt buildroot signature
|
||||
|
||||
|
||||
9
luci-app-ramfree/luasrc/controller/release_ram.lua
Normal file
9
luci-app-ramfree/luasrc/controller/release_ram.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
module("luci.controller.release_ram",package.seeall)
|
||||
|
||||
function index()
|
||||
entry({"admin","status","release_ram"}, call("release_ram"), _("Release Ram"), 9999)
|
||||
end
|
||||
function release_ram()
|
||||
luci.sys.call("sync && echo 3 > /proc/sys/vm/drop_caches")
|
||||
luci.http.redirect(luci.dispatcher.build_url("admin/status"))
|
||||
end
|
||||
2
luci-app-ramfree/po/zh-cn/release_ram.po
Normal file
2
luci-app-ramfree/po/zh-cn/release_ram.po
Normal file
@@ -0,0 +1,2 @@
|
||||
msgid "Release Ram"
|
||||
msgstr "释放内存"
|
||||
1
luci-app-ramfree/po/zh_Hans
Symbolic link
1
luci-app-ramfree/po/zh_Hans
Symbolic link
@@ -0,0 +1 @@
|
||||
zh-cn
|
||||
Reference in New Issue
Block a user