mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-29 18:55:13 +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
@@ -228,9 +228,8 @@ const methods = {
|
||||
|
||||
getFeatures: {
|
||||
call: function() {
|
||||
const kernel_version = popen('echo -n `uname -r`').read('all');
|
||||
const has_fw3 = access('/sbin/fw3') == true;
|
||||
const has_fw4 = access('/sbin/fw4') == true;
|
||||
const has_fw4 = access('/sbin/fw4') == true || access('/usr/sbin/fw4') == true;
|
||||
const has_ipt_flowoffload = access('/sys/module/xt_FLOWOFFLOAD/refcnt') == true;
|
||||
const has_nft_flowoffload = access('/sys/module/nft_flow_offload/refcnt') == true;
|
||||
const ubus = connect();
|
||||
@@ -249,7 +248,7 @@ const methods = {
|
||||
mii_tool: access('/usr/sbin/mii-tool'),
|
||||
offloading: (has_fw3 && has_ipt_flowoffload) || (has_fw4 && has_nft_flowoffload),
|
||||
offloading_hw: has_hw_offloading,
|
||||
fullcone: access(`/lib/modules/${kernel_version}/xt_FULLCONENAT.ko`) == true || access(`/lib/modules/${kernel_version}/nft_fullcone.ko`) == true,
|
||||
fullcone: access('/sys/module/xt_FULLCONENAT/refcnt') == true || access('/sys/module/nft_fullcone/refcnt') == true,
|
||||
br2684ctl: access('/usr/sbin/br2684ctl') == true,
|
||||
swconfig: access('/sbin/swconfig') == true,
|
||||
zram: access('/sys/class/zram-control') == true,
|
||||
|
||||
Reference in new issue
Block a user