mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-01 01:45:13 +08:00
🏅 Sync 2026-04-19 00:24:08
This commit is contained in:
1 parent
e08c81d7fc
commit
746d64b361
30 files changed
+1982
-1250
No files matched your search
@@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
|
||||
import { glob, unlink } from 'fs';
|
||||
|
||||
return {
|
||||
menu_flush: function() {
|
||||
for (let path in glob('/tmp/luci-indexcache', '/tmp/luci-indexcache.*'))
|
||||
unlink(path);
|
||||
|
||||
system('rm -rf /tmp/luci-modulecache 2>/dev/null');
|
||||
|
||||
http.prepare_content('application/json');
|
||||
http.write_json({ flushed: true });
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user