update 2026-06-16 17:21:41

This commit is contained in:
action
2026-06-16 17:21:41 +08:00
parent 19b8fe19fc
commit 0bae71881b
9 changed files with 75 additions and 38 deletions
+2 -4
View File
@@ -6,12 +6,10 @@
import { readfile } from 'fs';
import { cursor } from 'uci';
import { connect } from 'ubus';
import { get_paths, uci_bool, uci_array, get_cgroups_version, get_users, get_groups, get_cgroups } from '/etc/momo/ucode/include.uc';
import { uci_bool, uci_array, get_cgroups_version, get_users, get_groups, get_cgroups, load_profile } from '/etc/momo/ucode/include.uc';
const fw4 = require('fw4');
const paths = get_paths();
const cgroups_version = get_cgroups_version();
const users = get_users();
@@ -21,7 +19,7 @@
const uci = cursor();
const ubus = connect();
const profile = json(readfile(paths.run_profile_path));
const profile = load_profile();
uci.load('momo');