Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kiddin9 committed Mar 29, 2024
1 parent b8e010e commit db365f1
Show file tree
Hide file tree
Showing 24 changed files with 247 additions and 4,059 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/Openwrt-AutoBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ jobs:
REPO_BRANCH="$((curl -gs -H 'Content-Type: application/json' \
-H "Authorization: Bearer ${{ secrets.TOKEN_KIDDIN9 }}" \
-X POST -d '{ "query": "query {repository(owner: \"openwrt\", name: \"openwrt\") {refs(refPrefix: \"refs/tags/\", last: 4, orderBy: {field: TAG_COMMIT_DATE, direction: ASC}) {edges {node {name}}}}}"}' https://api.github.com/graphql) | jq -r '.data.repository.refs.edges[].node.name' | grep v23 | tail -n 1)"
REPO_BRANCH="openwrt-23.05"
#REPO_BRANCH="openwrt-23.05"
#echo "CONFIG_VERSION_REPO=\"https://dl.openwrt.ai/`echo $REPO_BRANCH | cut -d . -f 1,2 | sed -e 's/^v//'`\"">>devices/common/.config
echo "CONFIG_VERSION_REPO=\"https://dl.openwrt.ai/23.05\"">>devices/common/.config
if [[ ! "${{ env.REPO_BRANCH }}" && "$REPO_URL" == "https://github.com/openwrt/openwrt" ]]; then
Expand Down Expand Up @@ -198,15 +198,12 @@ jobs:
- name: Apply patches
run: |
cd openwrt
find "devices/common/patches" -type f ! -name 'china_mirrors.patch' -name '*.patch' ! -name '*.revert.patch' -print0 | sort -z | xargs -I % -t -0 -n 1 sh -c "cat '%' | patch -d './' -B --merge -p1 -E --forward"
#git apply devices/common/patches/*.patch
if [ -n "$(ls -A devices/${{matrix.target}}/patches 2>/dev/null)" ]; then
cp -rn devices/common/patches devices/${{matrix.target}}/
if [ -n "$(ls -A devices/${{matrix.target}}/*.bin.patch 2>/dev/null)" ]; then
git apply devices/${{matrix.target}}/patches/*.bin.patch
fi
find "devices/${{matrix.target}}/patches" -maxdepth 1 -type f -name '*.revert.patch' -print0 | sort -z | xargs -I % -t -0 -n 1 sh -c "cat '%' | patch -d './' -R -B --merge -p1 -E --forward"
find "devices/${{matrix.target}}/patches" -maxdepth 1 -type f -name '*.patch' ! -name '*.revert.patch' ! -name '*.bin.patch' -print0 | sort -z | xargs -I % -t -0 -n 1 sh -c "cat '%' | patch -d './' -B --merge -p1 -E --forward"
fi
sed -i '$a \
CONFIG_CPU_FREQ_GOV_POWERSAVE=y \
CONFIG_CPU_FREQ_GOV_USERSPACE=y \
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/repo-dispatcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ jobs:
-X POST https://api.github.com/repos/${{ github.repository }}/dispatches \
-H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: token ${{ secrets.TOKEN_KIDDIN9 }}" \
-d '{"event_type": "bcm27xx_bcm2712 ${{ github.event.inputs.param }}", "client_payload": {"target": "bcm27xx_bcm2712"}}'
curl \
-X POST https://api.github.com/repos/${{ github.repository }}/dispatches \
-H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: token ${{ secrets.TOKEN_KIDDIN9 }}" \
-d '{"event_type": "bcm27xx_bcm2711 ${{ github.event.inputs.param }}", "client_payload": {"target": "bcm27xx_bcm2711"}}'
curl \
-X POST https://api.github.com/repos/${{ github.repository }}/dispatches \
Expand Down
1 change: 1 addition & 0 deletions devices/armsr_armv8/diy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

SHELL_FOLDER=$(dirname $(readlink -f "$0"))

rm -rf package/feeds/kiddin9/rtl8188eu package/feeds/kiddin9/rtl8192eu package/feeds/kiddin9/rtl8812au-ac


1 change: 1 addition & 0 deletions devices/bcm27xx_bcm2708/diy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

SHELL_FOLDER=$(dirname $(readlink -f "$0"))

bash $SHELL_FOLDER/../common/kernel_6.1.sh

sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += fdisk lsblk kmod-usb-net-asix-ax88179 kmod-usb-net-rtl8152/' target/linux/bcm27xx/Makefile

Expand Down
1 change: 1 addition & 0 deletions devices/bcm27xx_bcm2709/diy.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
SHELL_FOLDER=$(dirname $(readlink -f "$0"))

bash $SHELL_FOLDER/../common/kernel_6.1.sh

sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += fdisk lsblk kmod-usb-net-asix-ax88179 kmod-usb-net-rtl8152/' target/linux/bcm27xx/Makefile

Expand Down
2 changes: 1 addition & 1 deletion devices/bcm27xx_bcm2710/diy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

SHELL_FOLDER=$(dirname $(readlink -f "$0"))


bash $SHELL_FOLDER/../common/kernel_6.1.sh

sed -i 's/ factory.img.gz / /' target/linux/bcm27xx/image/Makefile

Expand Down
2 changes: 1 addition & 1 deletion devices/bcm27xx_bcm2711/diy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

SHELL_FOLDER=$(dirname $(readlink -f "$0"))


bash $SHELL_FOLDER/../common/kernel_6.1.sh

sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += fdisk lsblk kmod-usb-net-asix-ax88179 kmod-usb-net-rtl8152/' target/linux/bcm27xx/Makefile
sed -i 's/ factory.img.gz / /' target/linux/bcm27xx/image/Makefile
Expand Down
10 changes: 10 additions & 0 deletions devices/bcm27xx_bcm2712/.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

CONFIG_TARGET_bcm27xx=y
CONFIG_TARGET_bcm27xx_bcm2712=y
CONFIG_TARGET_bcm27xx_bcm2712_DEVICE_rpi-5=y

CONFIG_PACKAGE_luci-ssl=n # uhttpd服务
CONFIG_PACKAGE_luci-ssl-nginx=y # nginx

CONFIG_PACKAGE_kmod-of-mdio=n

9 changes: 9 additions & 0 deletions devices/bcm27xx_bcm2712/diy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

SHELL_FOLDER=$(dirname $(readlink -f "$0"))

bash $SHELL_FOLDER/../common/kernel_6.1.sh

sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += fdisk lsblk kmod-usb-net-asix-ax88179 kmod-usb-net-rtl8152/' target/linux/bcm27xx/Makefile
sed -i 's/ factory.img.gz / /' target/linux/bcm27xx/image/Makefile

13 changes: 5 additions & 8 deletions devices/common/diy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ sed -i "s/192.168.1/10.0.0/" package/base-files/files/bin/config_generate

#sed -i "/call Build\/check-size,\$\$(KERNEL_SIZE)/d" include/image.mk

curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/package/kernel/linux/modules/video.mk -o package/kernel/linux/modules/video.mk

git_clone_path master https://github.com/coolsnowwolf/lede target/linux/generic/hack-5.15
curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/target/linux/generic/pending-5.15/613-netfilter_optional_tcp_window_check.patch -o target/linux/generic/pending-5.15/613-netfilter_optional_tcp_window_check.patch

Expand All @@ -51,17 +53,12 @@ mkdir package/kernel/mt76/patches
curl -sfL https://raw.githubusercontent.com/immortalwrt/immortalwrt/master/package/kernel/mt76/patches/0001-mt76-allow-VHT-rate-on-2.4GHz.patch -o package/kernel/mt76/patches/0001-mt76-allow-VHT-rate-on-2.4GHz.patch
}

rm -rf feeds/packages/libs/libpfring
cd feeds/packages
rm -rf libs/libpfring
git_clone_path master https://github.com/openwrt/packages libs/libpfring
cd -

rm -rf package/network/utils/xdp-tools
cd ../../

grep -q "1.8.8" package/network/utils/iptables/Makefile && {
rm -rf package/network/utils/iptables
git_clone_path openwrt-22.03 https://github.com/openwrt/openwrt package/network/utils/iptables
}
rm -rf package/network/utils/xdp-tools package/feeds/kiddin9/quectel_MHI package/feeds/packages/v4l2loopback

grep -q 'PKG_RELEASE:=9' package/libs/openssl/Makefile && {
sh -c "curl -sfL https://github.com/openwrt/openwrt/commit/a48d0bdb77eb93f7fba6e055dace125c72755b6a.patch | patch -d './' -p1 --forward"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
--- a/extensions/libipt_MASQUERADE.c
+++ b/extensions/libipt_MASQUERADE.c
@@ -11,6 +11,7 @@
enum {
O_TO_PORTS = 0,
O_RANDOM,
+ O_MODE,
O_RANDOM_FULLY,
};

@@ -23,13 +24,16 @@ static void MASQUERADE_help(void)
" --random\n"
" Randomize source port.\n"
" --random-fully\n"
-" Fully randomize source port.\n");
+" Fully randomize source port.\n"
+" --mode <fullcone|symmetric>\n"
+" NAT mode.\n");
}

static const struct xt_option_entry MASQUERADE_opts[] = {
{.name = "to-ports", .id = O_TO_PORTS, .type = XTTYPE_STRING},
{.name = "random", .id = O_RANDOM, .type = XTTYPE_NONE},
{.name = "random-fully", .id = O_RANDOM_FULLY, .type = XTTYPE_NONE},
+ {.name = "mode", .id = O_MODE, .type = XTTYPE_STRING},
XTOPT_TABLEEND,
};

@@ -90,6 +94,8 @@ static void MASQUERADE_parse(struct xt_o
else
portok = 0;

+ mr->range[0].min_ip = 0;
+
xtables_option_parse(cb);
switch (cb->entry->id) {
case O_TO_PORTS:
@@ -104,6 +110,15 @@ static void MASQUERADE_parse(struct xt_o
case O_RANDOM_FULLY:
mr->range[0].flags |= NF_NAT_RANGE_PROTO_RANDOM_FULLY;
break;
+ case O_MODE:
+ if (strcasecmp(cb->arg, "fullcone") == 0)
+ mr->range[0].min_ip = 1;
+ else if (strcasecmp(cb->arg, "symmetric") == 0)
+ mr->range[0].min_ip = 0;
+ else
+ xtables_error(PARAMETER_PROBLEM,
+ "Unknown mode %s", cb->arg);
+ break;
}
}

@@ -126,6 +141,9 @@ MASQUERADE_print(const void *ip, const s

if (r->flags & NF_NAT_RANGE_PROTO_RANDOM_FULLY)
printf(" random-fully");
+
+ if (r->min_ip == 1)
+ printf(" mode: fullcone");
}

static void
@@ -145,6 +163,9 @@ MASQUERADE_save(const void *ip, const st

if (r->flags & NF_NAT_RANGE_PROTO_RANDOM_FULLY)
printf(" --random-fully");
+
+ if (r->min_ip == 1)
+ printf(" --mode fullcone");
}

static int MASQUERADE_xlate(struct xt_xlate *xl,
21 changes: 13 additions & 8 deletions devices/common/kernel_6.1.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
#!/bin/bash

rm -rf target/linux package/kernel package/boot package/firmware/linux-firmware package/network/config/wifi-scripts config/Config-images.in
rm -rf target/linux package/kernel package/boot package/firmware package/network/config/wifi-scripts

mkdir new; cp -rf .git new/.git
cd new
git reset --hard origin/master

cp -rf --parents target/linux package/kernel package/boot package/firmware/linux-firmware include/kernel-6.1 package/network/config/wifi-scripts config/Config-images.in ../
cp -rf --parents target/linux package/kernel package/boot package/firmware include/kernel* package/network/config/wifi-scripts config/Config-images.in include/image*.mk scripts/ubinize-image.sh package/utils/bcm27xx-utils ../
cd -

sed -i "s/^.*vermagic$/\techo '1' > \$(LINUX_DIR)\/.vermagic/" include/kernel-defaults.mk

#sed -i "s/\$(PKG_VERSION)-\$(PKG_RELEASE)/\$(PKG_VERSION)-r\$(PKG_RELEASE)/" include/package-defaults.mk

cp -rf devices/common/patches/rootfstargz.patch.b devices/common/patches/rootfstargz.patch

git_clone_path master https://github.com/coolsnowwolf/lede target/linux/generic/hack-6.1

curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/target/linux/generic/pending-6.1/613-netfilter_optional_tcp_window_check.patch -o target/linux/generic/pending-6.1/613-netfilter_optional_tcp_window_check.patch

curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/package/kernel/linux/modules/video.mk -o package/kernel/linux/modules/video.mk

rm -rf target/linux/generic/hack-6.1/{410-block-fit-partition-parser.patch,724-net-phy-aquantia*,720-net-phy-add-aqr-phys.patch}

curl -sfL https://raw.githubusercontent.com/openwrt/openwrt/main/include/u-boot.mk -o include/u-boot.mk

mkdir package/kernel/mt76/patches
curl -sfL https://raw.githubusercontent.com/immortalwrt/immortalwrt/master/package/kernel/mt76/patches/0001-mt76-allow-VHT-rate-on-2.4GHz.patch -o package/kernel/mt76/patches/0001-mt76-allow-VHT-rate-on-2.4GHz.patch

Expand All @@ -25,15 +35,10 @@ rm -rf libs/xr_usb_serial_common net/coova-chilli net/xtables-addons
git_clone_path master https://github.com/openwrt/packages libs/xr_usb_serial_common
git_clone_path master https://github.com/openwrt/packages net/coova-chilli
git_clone_path master https://github.com/openwrt/packages net/xtables-addons
cd -
cd ../../

sed -i 's/=bbr/=cubic/' package/kernel/linux/files/sysctl-tcp-bbr.conf

sed -i "s/tty\(0\|1\)::askfirst/tty\1::respawn/g" target/linux/*/base-files/etc/inittab

sed -i "s/no-lto,/no-lto no-mold,/" include/package.mk

echo "
CONFIG_TESTING_KERNEL=y
" >> devices/common/.config
92 changes: 92 additions & 0 deletions devices/common/patches/rootfstargz.patch.b
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
From 467ef0219a65a3dd63ce27f41e54f09bf1f2ad64 Mon Sep 17 00:00:00 2001
From: kiddin9 <48883331+kiddin9@users.noreply.github.com>
Date: Mon, 4 Mar 2024 08:01:42 +0800
Subject: [PATCH] Update image.mk
Signed-off-by: kiddin9 <48883331+kiddin9@users.noreply.github.com>
---
include/image.mk | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/include/image.mk b/include/image.mk
index 4b6acbe1aad6a..f307dea1ca9a3 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -313,6 +313,44 @@ ifdef CONFIG_TARGET_ROOTFS_TARGZ
endef
endif
+define Device/Build/targz
+ $$(_TARGET): $(if $(CONFIG_JSON_OVERVIEW_IMAGE_INFO), \
+ $(BUILD_DIR)/json_info_files/$$(ROOTFSTZ).json, \
+ $(BIN_DIR)/$$(ROOTFSTZ))
+
+ $(call Device/Export,$(BUILD_DIR)/json_info_files/$$(ROOTFSTZ).json,$(1))
+
+ $(BUILD_DIR)/json_info_files/$$(ROOTFSTZ).json: $(BIN_DIR)/$$(ROOTFSTZ)
+ @mkdir -p $$(shell dirname $$@)
+ DEVICE_ID="$(1)" \
+ SOURCE_DATE_EPOCH=$(SOURCE_DATE_EPOCH) \
+ FILE_NAME="$$(notdir $$^)" \
+ FILE_DIR="$(BIN_DIR)" \
+ FILE_TYPE="rootfs" \
+ FILE_FILESYSTEM="rootfs" \
+ DEVICE_IMG_PREFIX="$$(DEVICE_IMG_PREFIX)" \
+ DEVICE_VENDOR="$$(DEVICE_VENDOR)" \
+ DEVICE_MODEL="$$(DEVICE_MODEL)" \
+ DEVICE_VARIANT="$$(DEVICE_VARIANT)" \
+ DEVICE_ALT0_VENDOR="$$(DEVICE_ALT0_VENDOR)" \
+ DEVICE_ALT0_MODEL="$$(DEVICE_ALT0_MODEL)" \
+ DEVICE_ALT0_VARIANT="$$(DEVICE_ALT0_VARIANT)" \
+ DEVICE_ALT1_VENDOR="$$(DEVICE_ALT1_VENDOR)" \
+ DEVICE_ALT1_MODEL="$$(DEVICE_ALT1_MODEL)" \
+ DEVICE_ALT1_VARIANT="$$(DEVICE_ALT1_VARIANT)" \
+ DEVICE_ALT2_VENDOR="$$(DEVICE_ALT2_VENDOR)" \
+ DEVICE_ALT2_MODEL="$$(DEVICE_ALT2_MODEL)" \
+ DEVICE_ALT2_VARIANT="$$(DEVICE_ALT2_VARIANT)" \
+ DEVICE_TITLE="$$(DEVICE_TITLE)" \
+ DEVICE_PACKAGES="$$(DEVICE_PACKAGES)" \
+ TARGET="$(BOARD)" \
+ SUBTARGET="$(if $(SUBTARGET),$(SUBTARGET),generic)" \
+ VERSION_NUMBER="$(VERSION_NUMBER)" \
+ VERSION_CODE="$(VERSION_CODE)" \
+ SUPPORTED_DEVICES="$$(SUPPORTED_DEVICES)" \
+ $(TOPDIR)/scripts/json_add_image_info.py $$@
+endef
+
ifdef CONFIG_TARGET_ROOTFS_CPIOGZ
define Image/Build/cpiogz
( cd $(TARGET_DIR); find . | $(STAGING_DIR_HOST)/bin/cpio -o -H newc -R 0:0 | gzip -9n >$(BIN_DIR)/$(IMG_ROOTFS).cpio.gz )
@@ -394,6 +432,7 @@ define Device/Init
FACTORY_IMG_NAME :=
IMAGE_SIZE :=
NAND_SIZE :=
+ ROOTFSTZ = $$(DEVICE_IMG_PREFIX)-rootfs.tar.gz
KERNEL_PREFIX = $$(DEVICE_IMG_PREFIX)
KERNEL_SUFFIX := -kernel.bin
KERNEL_INITRAMFS_SUFFIX = $$(KERNEL_SUFFIX)
@@ -631,6 +670,7 @@ endef
define Device/Build/image
GZ_SUFFIX := $(if $(filter %dtb %gz,$(2)),,$(if $(and $(findstring ext4,$(1)),$(CONFIG_TARGET_IMAGES_GZIP)),.gz))
+ GZ_SUFFIX := $(if $(filter %dtb %gz,$(2)),,$(if $(and $(findstring ext4,$(1)),$(findstring img,$(2)),$(CONFIG_TARGET_IMAGES_GZIP)),.gz))
$$(_TARGET): $(if $(CONFIG_JSON_OVERVIEW_IMAGE_INFO), \
$(BUILD_DIR)/json_info_files/$(call DEVICE_IMG_NAME,$(1),$(2)).json, \
$(BIN_DIR)/$(call DEVICE_IMG_NAME,$(1),$(2))$$(GZ_SUFFIX))
@@ -667,6 +707,7 @@ define Device/Build/image
FILE_DIR="$(KDIR)/tmp" \
FILE_TYPE=$(word 1,$(subst ., ,$(2))) \
FILE_FILESYSTEM="$(1)" \
+ KERNEL_INITRAMFS_IMAGE="$(subst $(IMG_PREFIX_EXTRA),,$(KERNEL_INITRAMFS_IMAGE))" \
DEVICE_IMG_PREFIX="$(DEVICE_IMG_PREFIX)" \
DEVICE_VENDOR="$(DEVICE_VENDOR)" \
DEVICE_MODEL="$(DEVICE_MODEL)" \
@@ -758,6 +799,8 @@ define Device/Build
$(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),$(call Device/Build/initramfs,$(1)))
$(call Device/Build/kernel,$(1))
+ $(if $(CONFIG_TARGET_ROOTFS_TARGZ),$(call Device/Build/targz,$(PROFILE_SANITIZED)))
+
$$(eval $$(foreach compile,$$(COMPILE), \
$$(call Device/Build/compile,$$(compile),$(1))))
17 changes: 0 additions & 17 deletions devices/mediatek_filogic/patches/08-cmcc_rax3000m.patch
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,6 @@
zbtlink,zbt-z8103ax)
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" eth1

--- a/target/linux/mediatek/filogic/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac
+++ b/target/linux/mediatek/filogic/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac
@@ -57,6 +57,13 @@ case "$board" in
esac
[ "$PHYNBR" = "1" ] && echo "$addr" > /sys${DEVPATH}/macaddress
;;
+ cmcc,rax3000m-emmc)
+ [ "$PHYNBR" = "1" ] && mmc_get_mac_binary factory 0xa > /sys${DEVPATH}/macaddress
+ ;;
+ cmcc,a10|\
+ cmcc,rax3000m-nand)
+ [ "$PHYNBR" = "1" ] && mtd_get_mac_binary Factory 0xa > /sys${DEVPATH}/macaddress
+ ;;
cudy,wr3000-v1)
addr=$(mtd_get_mac_binary bdinfo 0xde00)
# Originally, phy0 is phy1 mac with LA bit set. However, this would conflict

--- a/target/linux/mediatek/image/filogic.mk
+++ b/target/linux/mediatek/image/filogic.mk
@@ -280,7 +280,38 @@ define Device/cmcc_rax3000m
Expand Down
2 changes: 1 addition & 1 deletion devices/mediatek_filogic/patches/13-rg-x60-pro.patch
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,9 @@ index b86c376d74176..28e5f26958567 100644
jdcloud,re-cp-03|\
mediatek,mt7981-rfb|\
+ ruijie,rg-x60-pro|\
unielec,u7981-01*|\
zbtlink,zbt-z8102ax)
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" eth1
;;
@@ -150,6 +151,11 @@
wan_mac=$(macaddr_add "$lan_mac" 1)
label_mac=$wan_mac
Expand Down
2 changes: 1 addition & 1 deletion devices/mediatek_filogic/patches/14-netcore-n60.patch
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@ index 6fa3a9218c629..b8ac6337bd15f 100644
mediatek,mt7981-rfb|\
+ netcore,n60|\
ruijie,rg-x60-pro|\
unielec,u7981-01*|\
zbtlink,zbt-z8102ax)
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" eth1
diff --git a/target/linux/mediatek/filogic/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac b/target/linux/mediatek/filogic/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac
index 7f97e55f1f973..9e35c61434be3 100644
--- a/target/linux/mediatek/filogic/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac
Expand Down
Loading

0 comments on commit db365f1

Please sign in to comment.