mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-04 01:13:56 +08:00
update 2026-09-26 11:07:27
This commit is contained in:
1 parent
7b88b273d0
commit
97ae9f68da
4898 files changed
-1712274
No files matched your search
@@ -1,17 +0,0 @@
|
||||
# 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
|
||||
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
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
|
||||
@@ -1,2 +0,0 @@
|
||||
msgid "Release Ram"
|
||||
msgstr "释放内存"
|
||||
@@ -1 +0,0 @@
|
||||
zh-cn
|
||||
Reference in new issue
Block a user