mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-07-28 03:01:54 +08:00
36 lines
796 B
JavaScript
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');
|
|
}
|
|
});
|