mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-05 18:44:03 +08:00
Update luci-base.patch
This commit is contained in:
1 parent
d111cbf53b
commit
f50deeada1
1 file changed
+8
-8
@@ -1,17 +1,17 @@
|
|||||||
--- a/luci-base/root/usr/share/rpcd/ucode/luci
|
--- a/luci-base/root/usr/share/rpcd/ucode/luci
|
||||||
+++ b/luci-base/root/usr/share/rpcd/ucode/luci
|
+++ b/luci-base/root/usr/share/rpcd/ucode/luci
|
||||||
@@ -223,6 +223,7 @@ const methods = {
|
@@ -228,6 +228,7 @@ const methods = {
|
||||||
|
|
||||||
getFeatures: {
|
getFeatures: {
|
||||||
call: function() {
|
call: function() {
|
||||||
+ let kernel_version = popen('echo -n `uname -r`').read('all');
|
+ const kernel_version = popen('echo -n `uname -r`').read('all');
|
||||||
let result = {
|
const has_fw3 = access('/sbin/fw3') == true;
|
||||||
firewall: access('/sbin/fw3') == true,
|
const has_fw4 = access('/sbin/fw4') == true;
|
||||||
firewall4: access('/sbin/fw4') == true,
|
const has_ipt_flowoffload = access('/sys/module/xt_FLOWOFFLOAD/refcnt') == true;
|
||||||
@@ -230,7 +231,7 @@ const methods = {
|
@@ -248,7 +249,7 @@ const methods = {
|
||||||
bonding: access('/sys/module/bonding'),
|
|
||||||
mii_tool: access('/usr/sbin/mii-tool'),
|
mii_tool: access('/usr/sbin/mii-tool'),
|
||||||
offloading: access('/sys/module/xt_FLOWOFFLOAD/refcnt') == true || access('/sys/module/nft_flow_offload/refcnt') == true,
|
offloading: (has_fw3 && has_ipt_flowoffload) || (has_fw4 && has_nft_flowoffload),
|
||||||
|
offloading_hw: has_hw_offloading,
|
||||||
- fullcone: access('/sys/module/xt_FULLCONENAT/refcnt') == true || access('/sys/module/nft_fullcone/refcnt') == true,
|
- fullcone: access('/sys/module/xt_FULLCONENAT/refcnt') == true || access('/sys/module/nft_fullcone/refcnt') == true,
|
||||||
+ fullcone: access(`/lib/modules/${kernel_version}/xt_FULLCONENAT.ko`) == true || access(`/lib/modules/${kernel_version}/nft_fullcone.ko`) == true,
|
+ fullcone: access(`/lib/modules/${kernel_version}/xt_FULLCONENAT.ko`) == true || access(`/lib/modules/${kernel_version}/nft_fullcone.ko`) == true,
|
||||||
br2684ctl: access('/usr/sbin/br2684ctl') == true,
|
br2684ctl: access('/usr/sbin/br2684ctl') == true,
|
||||||
|
|||||||
Reference in new issue
Block a user