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() {
|
2021-08-04 10:58:50 +00:00
|
|
|
|
2021-01-05 23:38:00 +00:00
|
|
|
Author=Hyy2001
|
2021-08-09 15:50:07 +00:00
|
|
|
Banner_Title="Powered by AutoBuild-Actions"
|
2021-07-16 16:25:37 +00:00
|
|
|
Default_LAN_IP=192.168.1.1
|
2021-08-09 15:50:07 +00:00
|
|
|
|
2021-07-21 09:56:28 +00:00
|
|
|
Load_CustomPackages_List=true
|
|
|
|
Short_Firmware_Date=true
|
|
|
|
Checkout_Virtual_Images=false
|
2021-08-09 15:50:07 +00:00
|
|
|
Firmware_Format=false
|
|
|
|
REGEX_Skip_Checkout="packages|buildinfo|sha256sums|manifest|kernel|rootfs|factory"
|
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-04 10:58:50 +00:00
|
|
|
|
2021-08-03 10:41:36 +00:00
|
|
|
# 部分可调用变量如下
|
|
|
|
# OP_Maintainer 源码作者
|
|
|
|
# OP_REPO_NAME 仓库名称
|
2021-08-29 15:03:38 +00:00
|
|
|
# OP_BRANCH 源码分支
|
2021-08-03 10:41:36 +00:00
|
|
|
# TARGET_PROFILE 设备名称
|
|
|
|
# TARGET_BOARD 设备架构
|
2021-08-04 10:58:50 +00:00
|
|
|
|
|
|
|
# CustomFiles 仓库 /CustomFiles 绝对路径
|
2021-08-29 15:03:38 +00:00
|
|
|
# Scripts 仓库 /Scripts 绝对路径
|
|
|
|
# Home 源码存放绝对路径,等同 ${GITHUB_WORKSPACE}/openwrt
|
2021-08-04 10:58:50 +00:00
|
|
|
# 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
|
|
|
|
|
|
|
|
case "${OP_Maintainer}/${OP_REPO_NAME}:${OP_BRANCH}" in
|
|
|
|
coolsnowwolf/lede:master)
|
|
|
|
sed -i "s?/bin/login?/usr/libexec/login.sh?g" ${feeds_pkgs}/ttyd/files/ttyd.config
|
|
|
|
;;
|
|
|
|
esac
|
2021-08-03 10:41:36 +00:00
|
|
|
|
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-10-10 14:01:07 +00:00
|
|
|
[[ ${OP_REPO_NAME} == lede ]] && sed -i "/DEVICE_COMPAT_VERSION := 1.1/d" target/linux/ramips/image/mt7621.mk
|
2021-06-24 08:20:23 +00:00
|
|
|
;;
|
2021-03-24 12:50:54 +00:00
|
|
|
esac
|
2021-08-04 10:58:50 +00:00
|
|
|
|
2021-08-29 15:03:38 +00:00
|
|
|
}
|