🐶 Sync 2025-11-02 14:26:26
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) 2016 Openwrt.org
|
||||
#
|
||||
# This is free software, licensed under the Apache License, Version 2.0 .
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
LUCI_TITLE:=LuCI support for ramfree
|
||||
LUCI_PKGARCH:=all
|
||||
|
||||
PKG_NAME:=luci-app-ramfree
|
||||
PKG_VERSION:=1.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
include $(TOPDIR)/feeds/luci/luci.mk
|
||||
|
||||
# call BuildPackage - OpenWrt buildroot signature
|
||||
@@ -0,0 +1,20 @@
|
||||
'use strict';
|
||||
'require fs';
|
||||
'require view';
|
||||
|
||||
return view.extend({
|
||||
handleSaveApply: null,
|
||||
handleSave: null,
|
||||
handleReset: null,
|
||||
|
||||
load: function() {
|
||||
return Promise.all([
|
||||
L.resolveDefault(fs.exec('/bin/sync', null), null),
|
||||
L.resolveDefault(fs.exec('/sbin/sysctl', ['-w', 'vm.drop_caches=3']), null),
|
||||
]);
|
||||
},
|
||||
|
||||
render: function () {
|
||||
window.location.href = '/cgi-bin/luci/';
|
||||
}
|
||||
});
|
||||
1
luci-app-ramfree/po/zh-cn
Symbolic link
1
luci-app-ramfree/po/zh-cn
Symbolic link
@@ -0,0 +1 @@
|
||||
zh_Hans
|
||||
12
luci-app-ramfree/po/zh_Hans/ramfree.po
Normal file
12
luci-app-ramfree/po/zh_Hans/ramfree.po
Normal file
@@ -0,0 +1,12 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Last-Translator: Automatically generated\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: zh_Hans\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
msgid "Freeping Memory Cache"
|
||||
msgstr "释放内存"
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"admin/status/ramfree": {
|
||||
"title": "Freeping Memory Cache",
|
||||
"order": 9999,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "ramfree"
|
||||
},
|
||||
"depends": {
|
||||
"acl": [ "luci-app-ramfree" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"luci-app-ramfree": {
|
||||
"description": "Grant UCI access for luci-app-ramfree",
|
||||
"read": {
|
||||
"file": {
|
||||
"/bin/sync": [ "exec" ],
|
||||
"/sbin/sysctl": [ "exec" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user