generated from P3TERX/Actions-OpenWrt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpatch.sh
23 lines (19 loc) · 993 Bytes
/
patch.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
set -e
sed -i '/mt7621[ \t]*|/i\\txiaoyu,xy-c5|\\' target/linux/ramips/base-files/etc/board.d/02_network
sed -i '/tew-692gr[ \t]*)/i\\txiaoyu,xy-c5|\\' target/linux/ramips/base-files/etc/board.d/02_network
# 这两行可有可无
#sed -i '/mt7621[ \t]*|/i\\txiaoyu_xy-c5|\\' target/linux/ramips/base-files/etc/board.d/02_network
#sed -i '/tew-692gr[ \t]*)/i\\txiaoyu_xy-c5|\\' target/linux/ramips/base-files/etc/board.d/02_network
curl -L https://raw.githubusercontent.com/openwrt/openwrt/master/target/linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts > target/linux/ramips/dts/xiaoyu_xy-c5.dts
echo 'define Device/xiaoyu_xy-c5
MTK_SOC := mt7621
DTS := xiaoyu_xy-c5
IMAGE_SIZE := $(ralink_default_fw_size_32M)
DEVICE_VENDOR := XiaoYu
DEVICE_MODEL := XY-C5
DEVICE_TITLE := XiaoYu XY-C5
DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-usb3 kmod-usb-ledtrig-usbport
SUPPORTED_DEVICES += xy-c5
endef
TARGET_DEVICES += xiaoyu_xy-c5' >> target/linux/ramips/image/mt7621.mk