mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-03 07:13:56 +08:00
🐤 Sync 2026-06-24 03:33:40
This commit is contained in:
1 parent
c72c833af0
commit
34879cebcd
69 files changed
+3101
-8708
No files matched your search
@@ -80,14 +80,12 @@ return view.extend({
|
||||
maxF.rmempty = false;
|
||||
});
|
||||
|
||||
// Wrap the default saveApply: after a successful UCI commit, trigger
|
||||
// reload_cpu so the new governor and frequency limits take effect
|
||||
// without the user manually restarting the service.
|
||||
const origHandle = m.handleSaveApply;
|
||||
m.handleSaveApply = function () {
|
||||
return origHandle.apply(this, arguments)
|
||||
.then(function (r) { callReloadCpu(); return r; });
|
||||
};
|
||||
// Reload CPU settings after the LuCI apply mechanism commits UCI to disk.
|
||||
// The standard apply flow (apply_rollback → ucitrack → init.d restart)
|
||||
// reads UCI before the new values are fully written, so we re-apply here.
|
||||
document.addEventListener('uci-applied', function () {
|
||||
callReloadCpu();
|
||||
});
|
||||
|
||||
return m.render();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user