Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kiddin9 committed Dec 21, 2024
1 parent 53916c5 commit 485a54b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
6 changes: 4 additions & 2 deletions devices/common/patches/luci-base.patch
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
--- a/package/feeds/luci/luci-base/root/usr/share/rpcd/ucode/luci
+++ b/package/feeds/luci/luci-base/root/usr/share/rpcd/ucode/luci
@@ -192,11 +192,13 @@ const methods = {
@@ -192,6 +192,7 @@ const methods = {

getFeatures: {
call: function() {
+ let kernel_version = popen('echo -n `uname -r`').read('all');
let result = {
firewall: access('/sbin/fw3') == true,
firewall4: access('/sbin/fw4') == true,
opkg: access('/bin/opkg') == true,
@@ -199,6 +200,7 @@ const methods = {
bonding: access('/sys/module/bonding'),
mii_tool: access('/usr/sbin/mii-tool'),
offloading: access('/sys/module/xt_FLOWOFFLOAD/refcnt') == true || access('/sys/module/nft_flow_offload/refcnt') == 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,
Expand Down
16 changes: 8 additions & 8 deletions devices/qualcommax_ipq807x/patches/ap8220.patch
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@
asus,rt-ax89x)
ucidef_set_interfaces_lan_wan "10g-sfp 10g-copper lan1 lan2 lan3 lan4 lan5 lan6 lan7 lan8" "wan"
;;
@@ -97,7 +100,10 @@ ipq807x_setup_macs()
[ "$wan_mac" != "00:00:00:00:00:00" ] || wan_mac="$(get_mac_binary "$(find_mtd_chardev mac)" 0x20000)"
lan_mac="$(macaddr_add "$wan_mac" 1)"
label_mac="$wan_mac"
-
+ ;;
@@ -80,6 +80,10 @@ ipq807x_setup_macs()
local label_mac=""

case "$board" in
+ aliyun,ap8220)
+ wan_mac=$(cat /dev/mtd12 | head -n 4 | grep "product.mac" | awk -F " " '{print $2}')
+ lan_mac=$(macaddr_add "$wan_mac" 1)
;;
esac
+ ;;
linksys,mx4200v2)
label_mac=$(mtd_get_mac_ascii devinfo hw_mac_addr)
for i in $(seq 3 5); do

--- a/target/linux/qualcommax/ipq807x/base-files/lib/upgrade/platform.sh
+++ b/target/linux/qualcommax/ipq807x/base-files/lib/upgrade/platform.sh
Expand Down

0 comments on commit 485a54b

Please sign in to comment.