op-packages/luci-app-syscontrol/htdocs/luci-static/resources/view/syscontrol/release-ram.js
github-actions[bot] 32600acc60 🌴 Sync 2026-03-05 23:51:42
2026-03-05 23:51:42 +08:00

36 lines
796 B
JavaScript

/*
* This is open source software, licensed under the MIT License.
*
* Copyright (C) 2024 BobbyUnknown
*
* Description:
* This software provides a RAM release scheduling application for OpenWrt.
* The application allows users to configure and automate the process of
* releasing RAM on their OpenWrt router at specified intervals, helping
* to optimize system performance and resource management through a
* user-friendly web interface.
*/
'use strict';
'require fs';
'require view';
return view.extend({
handleSaveApply: null,
handleSave: null,
handleReset: null,
load: function() {
fs.exec('/usr/bin/ram_release.sh', ['release']);
return null;
},
render: function() {
window.location.href = '/cgi-bin/luci/admin/system/syscontrol';
return E('div');
}
});