🐶 Sync 2025-11-02 14:26:26

This commit is contained in:
actions-user
2025-11-02 14:26:26 +08:00
parent 64bcc56c2a
commit ac011db799
1557 changed files with 746465 additions and 0 deletions

17
luci-app-ramfree/Makefile Normal file
View 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

View File

@@ -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
View File

@@ -0,0 +1 @@
zh_Hans

View 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 "释放内存"

View File

@@ -0,0 +1,13 @@
{
"admin/status/ramfree": {
"title": "Freeping Memory Cache",
"order": 9999,
"action": {
"type": "view",
"path": "ramfree"
},
"depends": {
"acl": [ "luci-app-ramfree" ]
}
}
}

View File

@@ -0,0 +1,11 @@
{
"luci-app-ramfree": {
"description": "Grant UCI access for luci-app-ramfree",
"read": {
"file": {
"/bin/sync": [ "exec" ],
"/sbin/sysctl": [ "exec" ]
}
}
}
}