2021-01-05 23:38:00 +00:00
|
|
|
#!/bin/bash
|
2021-06-06 05:53:18 +00:00
|
|
|
# AutoBuild Module by Hyy2001 <https://github.com/Hyy2001X/AutoBuild-Actions>
|
2021-01-05 23:38:00 +00:00
|
|
|
# AutoBuild DiyScript
|
|
|
|
|
|
|
|
Diy_Core() {
|
|
|
|
Author=Hyy2001
|
2021-07-16 16:25:37 +00:00
|
|
|
Default_LAN_IP=192.168.1.1
|
2021-07-21 09:56:28 +00:00
|
|
|
Load_CustomPackages_List=true
|
|
|
|
Short_Firmware_Date=true
|
|
|
|
Checkout_Virtual_Images=false
|
2021-01-11 13:44:45 +00:00
|
|
|
|
2021-06-17 09:55:19 +00:00
|
|
|
INCLUDE_AutoBuild_Features=true
|
2021-06-19 12:59:29 +00:00
|
|
|
INCLUDE_DRM_I915=true
|
2021-06-17 09:55:19 +00:00
|
|
|
INCLUDE_Argon=true
|
2021-04-09 15:12:34 +00:00
|
|
|
INCLUDE_Obsolete_PKG_Compatible=false
|
2021-01-05 23:38:00 +00:00
|
|
|
}
|
|
|
|
|
2021-03-29 09:11:16 +00:00
|
|
|
Firmware-Diy() {
|
2021-08-03 10:41:36 +00:00
|
|
|
# 部分可调用变量如下
|
|
|
|
# OP_Maintainer 源码作者
|
|
|
|
# OP_REPO_NAME 仓库名称
|
|
|
|
# OP_BRANCH 源码分支
|
|
|
|
# TARGET_PROFILE 设备名称
|
|
|
|
# TARGET_BOARD 设备架构
|
|
|
|
# CustomFiles 仓库 /CustomFiles 路径
|
|
|
|
# Scripts 仓库 /Scripts 路径
|
|
|
|
# Home 源码存放位置,等同 ${GITHUB_WORKSPACE}/openwrt
|
|
|
|
# feeds_luci 等同 ${GITHUB_WORKSPACE}/openwrt/package/feeds/luci
|
|
|
|
# feeds_pkgs 等同 ${GITHUB_WORKSPACE}/openwrt/package/feeds/packages
|
|
|
|
# base_files 等同 ${GITHUB_WORKSPACE}/openwrt/package/base-files/files
|
|
|
|
|
2021-06-06 05:53:18 +00:00
|
|
|
case "${TARGET_PROFILE}" in
|
2021-03-24 12:50:54 +00:00
|
|
|
d-team_newifi-d2)
|
2021-08-03 10:41:36 +00:00
|
|
|
patch -i ${CustomFiles}/mac80211_d-team_newifi-d2.patch package/kernel/mac80211/files/lib/wifi/mac80211.sh
|
|
|
|
Copy ${CustomFiles}/system_d-team_newifi-d2 ${base_files}/etc/config system
|
2021-06-24 08:20:23 +00:00
|
|
|
;;
|
2021-03-24 12:50:54 +00:00
|
|
|
esac
|
2021-08-03 09:01:02 +00:00
|
|
|
case "${OP_Maintainer}/${OP_REPO_NAME}:${OP_BRANCH}" in
|
|
|
|
coolsnowwolf/lede:master)
|
2021-08-03 10:41:36 +00:00
|
|
|
sed -i "s?/bin/login?/usr/libexec/login.sh?g" ${feeds_pkgs}/ttyd/files/ttyd.config
|
|
|
|
sed -i "/dns_caching_dns/d" $(PKG_Finder d package luci-app-turboacc)/root/etc/config/turboacc
|
|
|
|
echo " option dns_caching_dns '223.5.5.5,114.114.114.114'" >> $(PKG_Finder d package luci-app-turboacc)/root/etc/config/turboacc
|
2021-08-03 09:01:02 +00:00
|
|
|
;;
|
|
|
|
esac
|
2021-06-06 05:53:18 +00:00
|
|
|
}
|