forked from 281677160/build-actions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
同步上游281677160/build-actions于2021年11月17号13时39分38秒
- Loading branch information
1 parent
fd1d7fa
commit 138f6b5
Showing
10 changed files
with
397 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2019-2020 P3TERX <https://p3terx.com> | ||
# DIY扩展二合一了,在此处可以增加插件 | ||
# 自行拉取插件之前请SSH连接进入固件配置里面确认过没有你要的插件再单独拉取你需要的插件 | ||
# 不要一下就拉取别人一个插件包N多插件的,多了没用,增加编译错误,自己需要的才好 | ||
# 修改IP项的EOF于EOF之间请不要插入其他扩展代码,可以删除或注释里面原本的代码 | ||
# 如果你的OP是当主路由的话,网关、DNS、广播都不需要,代码前面加 # 注释掉,只保留后台地址和子网掩码就可以 | ||
# 如果你有编译ipv6的话,‘去掉LAN口使用内置的 IPv6 管理’代码前面也加 # 注释掉 | ||
|
||
|
||
|
||
cat >$NETIP <<-EOF | ||
uci set network.lan.ipaddr='192.168.2.2' # IPv4 地址(openwrt后台地址) | ||
uci set network.lan.netmask='255.255.255.0' # IPv4 子网掩码 | ||
uci set network.lan.gateway='192.168.2.1' # IPv4 网关 | ||
uci set network.lan.broadcast='192.168.2.255' # IPv4 广播 | ||
uci set network.lan.dns='223.5.5.5 114.114.114.114' # DNS(多个DNS要用空格分开) | ||
uci set network.lan.delegate='0' # 去掉LAN口使用内置的 IPv6 管理 | ||
uci commit network # 不要删除跟注释,除非上面全部删除或注释掉了 | ||
#uci set dhcp.lan.ignore='1' # 关闭DHCP功能 | ||
#uci commit dhcp # 跟‘关闭DHCP功能’联动,同时启用或者删除跟注释 | ||
uci set system.@system[0].hostname='OpenWrt-123' # 修改主机名称为OpenWrt-123 | ||
#sed -i 's/\/bin\/login/\/bin\/login -f root/' /etc/config/ttyd # 设置ttyd免帐号登录,如若开启,进入OPENWRT后可能要重启一次才生效 | ||
EOF | ||
|
||
sed -i 's/luci-theme-bootstrap/luci-theme-argon/g' feeds/luci/collections/luci/Makefile # 选择argon为默认主题 | ||
|
||
sed -i "s/OpenWrt /${Author} compiled in $(TZ=UTC-8 date "+%Y.%m.%d") @ OpenWrt /g" $ZZZ # 增加个性名字 ${Author} 默认为你的github帐号 | ||
|
||
sed -i '/CYXluq4wUazHjmCDBCqXF/d' $ZZZ # 设置密码为空 | ||
|
||
#sed -i 's/PATCHVER:=5.4/PATCHVER:=5.10/g' target/linux/x86/Makefile # x86机型,默认内核5.4,修改内核为5.10 | ||
|
||
# K3专用,编译K3的时候只会出K3固件 | ||
#sed -i 's|^TARGET_|# TARGET_|g; s|# TARGET_DEVICES += phicomm_k3|TARGET_DEVICES += phicomm_k3|' target/linux/bcm53xx/image/Makefile | ||
|
||
|
||
# 在线更新时,删除不想保留固件的某个文件,在EOF跟EOF直接加入删除代码,记住这里对应的是固件的文件路径,比如: rm /etc/config/luci | ||
cat >$DELETE <<-EOF | ||
EOF | ||
|
||
|
||
# 修改插件名字 | ||
sed -i 's/"aMule设置"/"电驴下载"/g' `grep "aMule设置" -rl ./` | ||
sed -i 's/"网络存储"/"NAS"/g' `grep "网络存储" -rl ./` | ||
sed -i 's/"Turbo ACC 网络加速"/"网络加速"/g' `grep "Turbo ACC 网络加速" -rl ./` | ||
sed -i 's/"实时流量监测"/"流量"/g' `grep "实时流量监测" -rl ./` | ||
sed -i 's/"KMS 服务器"/"KMS激活"/g' `grep "KMS 服务器" -rl ./` | ||
sed -i 's/"TTYD 终端"/"命令窗"/g' `grep "TTYD 终端" -rl ./` | ||
sed -i 's/"USB 打印服务器"/"打印服务"/g' `grep "USB 打印服务器" -rl ./` | ||
sed -i 's/"Web 管理"/"Web"/g' `grep "Web 管理" -rl ./` | ||
sed -i 's/"管理权"/"改密码"/g' `grep "管理权" -rl ./` | ||
sed -i 's/"带宽监控"/"监控"/g' `grep "带宽监控" -rl ./` | ||
sed -i 's/"Argon 主题设置"/"Argon设置"/g' `grep "Argon 主题设置" -rl ./` | ||
|
||
|
||
# 整理固件包时候,删除您不想要的固件或者文件,让它不需要上传到Actions空间 | ||
cat >${GITHUB_WORKSPACE}/Clear <<-EOF | ||
rm -rf config.buildinfo | ||
rm -rf feeds.buildinfo | ||
rm -rf openwrt-x86-64-generic-kernel.bin | ||
rm -rf openwrt-x86-64-generic.manifest | ||
rm -rf openwrt-x86-64-generic-squashfs-rootfs.img.gz | ||
rm -rf sha256sums | ||
rm -rf version.buildinfo | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
REPO_URL="https://github.com/coolsnowwolf/lede" # 编译固件源码链接(请勿修改) | ||
REPO_BRANCH="master" # 源码链接的分支(请勿修改) | ||
CONFIG_FILE=".config" # 配置文件(可SSH远程定制固件插件,也可在本地提取配置粘贴到此文件) | ||
DIY_PART_SH="diy-part.sh" # 自定义文件(增加插件或者修改IP之类的自定义设置) | ||
SSH_ACTIONS="false" # SSH远程配置固件(true=开启)(false=关闭) | ||
UPLOAD_BIN_DIR="false" # 上传【bin文件夹】到github空间(true=开启)(false=关闭) | ||
UPLOAD_CONFIG="true" # 上传【.config】配置文件到github空间(true=开启)(false=关闭) | ||
UPLOAD_FIRMWARE="true" # 上传固件到github空间(true=开启)(false=关闭) | ||
UPLOAD_COWTRANSFER="false" # 上传固件到到【奶牛快传】和【WETRANSFER】(true=开启)(false=关闭) | ||
UPLOAD_RELEASE="false" # 发布固件(true=开启)(false=关闭) | ||
SERVERCHAN_SCKEY="TELE" # Telegram或push通知,填"TELE"为Telegram通知,填"PUSH"为pushplus通知,(false=关闭) | ||
USE_CACHEWRTBUILD="true" # 是否开启缓存加速,如出现带有缓存编译时莫名错误导致失败的,请关闭(true=开启)(false=关闭) | ||
REGULAR_UPDATE="true" # 把自动在线更新的插件编译进固件(请看说明)(true=开启)(false=关闭) | ||
BY_INFORMATION="true" # 是否显示编译信息,如出现信息显示错误导致信息不显示,请关闭(true=开启)(false=关闭) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2019-2020 P3TERX <https://p3terx.com> | ||
# DIY扩展二合一了,在此处可以增加插件 | ||
# 自行拉取插件之前请SSH连接进入固件配置里面确认过没有你要的插件再单独拉取你需要的插件 | ||
# 不要一下就拉取别人一个插件包N多插件的,多了没用,增加编译错误,自己需要的才好 | ||
# 修改IP项的EOF于EOF之间请不要插入其他扩展代码,可以删除或注释里面原本的代码 | ||
# 如果你的OP是当主路由的话,网关、DNS、广播都不需要,代码前面加 # 注释掉,只保留后台地址和子网掩码就可以 | ||
# 如果你有编译ipv6的话,‘去掉LAN口使用内置的 IPv6 管理’代码前面也加 # 注释掉 | ||
|
||
|
||
cat >$NETIP <<-EOF | ||
uci set network.lan.ipaddr='192.168.2.2' # IPv4 地址(openwrt后台地址) | ||
uci set network.lan.netmask='255.255.255.0' # IPv4 子网掩码 | ||
uci set network.lan.gateway='192.168.2.1' # IPv4 网关 | ||
uci set network.lan.broadcast='192.168.2.255' # IPv4 广播 | ||
uci set network.lan.dns='223.5.5.5 114.114.114.114' # DNS(多个DNS要用空格分开) | ||
uci set network.lan.delegate='0' # 去掉LAN口使用内置的 IPv6 管理 | ||
uci commit network # 不要删除跟注释,除非上面全部删除或注释掉了 | ||
#uci set dhcp.lan.ignore='1' # 关闭DHCP功能 | ||
#uci commit dhcp # 跟‘关闭DHCP功能’联动,同时启用或者删除跟注释 | ||
uci set system.@system[0].hostname='OpenWrt-123' # 修改主机名称为OpenWrt-123 | ||
#sed -i 's/\/bin\/login/\/bin\/login -f root/' /etc/config/ttyd # 设置ttyd免帐号登录,如若开启,进入OPENWRT后可能要重启一次才生效 | ||
EOF | ||
|
||
sed -i 's/luci-theme-bootstrap/luci-theme-argon/g' feeds/luci/collections/luci/Makefile # 选择argon为默认主题 | ||
|
||
sed -i "s/OpenWrt /${Author} compiled in $(TZ=UTC-8 date "+%Y.%m.%d") @ OpenWrt /g" $ZZZ # 增加个性名字 ${Author} 默认为你的github帐号 | ||
|
||
#sed -i 's/PATCHVER:=4.14/PATCHVER:=4.9/g' target/linux/x86/Makefile # x86机型,默认内核4.14,修改内核为4.9 | ||
|
||
# K3专用,编译K3的时候只会出K3固件 | ||
#sed -i 's|^TARGET_|# TARGET_|g; s|# TARGET_DEVICES += phicomm-k3|TARGET_DEVICES += phicomm-k3|' target/linux/bcm53xx/image/Makefile | ||
|
||
|
||
# 在线更新时,删除不想保留固件的某个文件,在EOF跟EOF直接加入删除代码,记住这里对应的是固件的文件路径,比如: rm /etc/config/luci | ||
cat >$DELETE <<-EOF | ||
EOF | ||
|
||
# 修改插件名字 | ||
sed -i 's/"aMule设置"/"电驴下载"/g' `grep "aMule设置" -rl ./` | ||
sed -i 's/"网络存储"/"NAS"/g' `grep "网络存储" -rl ./` | ||
sed -i 's/"Turbo ACC 网络加速"/"网络加速"/g' `grep "Turbo ACC 网络加速" -rl ./` | ||
sed -i 's/"实时流量监测"/"流量"/g' `grep "实时流量监测" -rl ./` | ||
sed -i 's/"KMS 服务器"/"KMS激活"/g' `grep "KMS 服务器" -rl ./` | ||
sed -i 's/"TTYD 终端"/"命令窗"/g' `grep "TTYD 终端" -rl ./` | ||
sed -i 's/"USB 打印服务器"/"打印服务"/g' `grep "USB 打印服务器" -rl ./` | ||
sed -i 's/"Web 管理"/"Web"/g' `grep "Web 管理" -rl ./` | ||
sed -i 's/"管理权"/"改密码"/g' `grep "管理权" -rl ./` | ||
sed -i 's/"带宽监控"/"监控"/g' `grep "带宽监控" -rl ./` | ||
sed -i 's/"Argon 主题设置"/"Argon设置"/g' `grep "Argon 主题设置" -rl ./` | ||
|
||
|
||
# 整理固件包时候,删除您不想要的固件或者文件,让它不需要上传到Actions空间 | ||
cat >${GITHUB_WORKSPACE}/Clear <<-EOF | ||
rm -rf config.buildinfo | ||
rm -rf feeds.buildinfo | ||
rm -rf openwrt-x86-64-generic-kernel.bin | ||
rm -rf openwrt-x86-64-generic.manifest | ||
rm -rf openwrt-x86-64-generic-squashfs-rootfs.img.gz | ||
rm -rf sha256sums | ||
rm -rf version.buildinfo | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
REPO_URL="https://github.com/Lienol/openwrt" # 编译固件源码链接(请勿修改) | ||
REPO_BRANCH="19.07" # 源码链接的分支(请勿修改) | ||
CONFIG_FILE=".config" # 配置文件(可SSH远程定制固件插件,也可在本地提取配置粘贴到此文件) | ||
DIY_PART_SH="diy-part.sh" # 自定义文件(增加插件或者修改IP之类的自定义设置) | ||
SSH_ACTIONS="false" # SSH远程配置固件(true=开启)(false=关闭) | ||
UPLOAD_BIN_DIR="false" # 上传【bin文件夹】到github空间(true=开启)(false=关闭) | ||
UPLOAD_CONFIG="true" # 上传【.config】配置文件到github空间(true=开启)(false=关闭) | ||
UPLOAD_FIRMWARE="true" # 上传固件到github空间(true=开启)(false=关闭) | ||
UPLOAD_COWTRANSFER="false" # 上传固件到到【奶牛快传】和【WETRANSFER】(true=开启)(false=关闭) | ||
UPLOAD_RELEASE="false" # 发布固件(true=开启)(false=关闭) | ||
SERVERCHAN_SCKEY="TELE" # Telegram或push通知,填"TELE"为Telegram通知,填"PUSH"为pushplus通知,(false=关闭) | ||
USE_CACHEWRTBUILD="true" # 是否开启缓存加速,如出现带有缓存编译时莫名错误导致失败的,请关闭(true=开启)(false=关闭) | ||
REGULAR_UPDATE="true" # 把自动在线更新的插件编译进固件(请看说明)(true=开启)(false=关闭) | ||
BY_INFORMATION="true" # 是否显示编译信息,如出现信息显示错误导致信息不显示,请关闭(true=开启)(false=关闭) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2019-2020 P3TERX <https://p3terx.com> | ||
# DIY扩展二合一了,在此处可以增加插件 | ||
# 自行拉取插件之前请SSH连接进入固件配置里面确认过没有你要的插件再单独拉取你需要的插件 | ||
# 不要一下就拉取别人一个插件包N多插件的,多了没用,增加编译错误,自己需要的才好 | ||
# 修改IP项的EOF于EOF之间请不要插入其他扩展代码,可以删除或注释里面原本的代码 | ||
# 如果你的OP是当主路由的话,网关、DNS、广播都不需要,代码前面加 # 注释掉,只保留后台地址和子网掩码就可以 | ||
# 如果你有编译ipv6的话,‘去掉LAN口使用内置的 IPv6 管理’代码前面也加 # 注释掉 | ||
|
||
|
||
|
||
cat >$NETIP <<-EOF | ||
uci set network.lan.ipaddr='192.168.2.2' # IPv4 地址(openwrt后台地址) | ||
uci set network.lan.netmask='255.255.255.0' # IPv4 子网掩码 | ||
uci set network.lan.gateway='192.168.2.1' # IPv4 网关 | ||
uci set network.lan.broadcast='192.168.2.255' # IPv4 广播 | ||
uci set network.lan.dns='114.114.114.114 223.5.5.5' # DNS(多个DNS要用空格分开) | ||
uci set network.lan.delegate='0' # 去掉LAN口使用内置的 IPv6 管理 | ||
uci commit network # 不要删除跟注释,除非上面全部删除或注释掉了 | ||
#uci set dhcp.lan.ignore='1' # 关闭DHCP功能 | ||
#uci commit dhcp # 跟‘关闭DHCP功能’联动,同时启用或者删除跟注释 | ||
uci set system.@system[0].hostname='OpenWrt-123' # 修改主机名称为OpenWrt-123 | ||
#sed -i 's/\/bin\/login/\/bin\/login -f root/' /etc/config/ttyd # 设置ttyd免帐号登录,如若开启,进入OPENWRT后可能要重启一次才生效 | ||
EOF | ||
|
||
|
||
sed -i 's/luci-theme-bootstrap/luci-theme-argon/g' feeds/luci/collections/luci/Makefile # 选择argon为默认主题 | ||
|
||
sed -i "s/OpenWrt /${Author} Compiled in $(TZ=UTC-8 date "+%Y.%m.%d") @ OpenWrt /g" $ZZZ # 增加个性名字${Author}默认为你的github账号 | ||
|
||
sed -i '/CYXluq4wUazHjmCDBCqXF/d' $ZZZ # 设置密码为空 | ||
|
||
|
||
# K3专用,编译K3的时候只会出K3固件 | ||
#sed -i 's|^TARGET_|# TARGET_|g; s|# TARGET_DEVICES += phicomm_k3|TARGET_DEVICES += phicomm_k3|' target/linux/bcm53xx/image/Makefile | ||
|
||
|
||
# 在线更新时,删除不想保留固件的某个文件,在EOF跟EOF直接加入删除代码,记住这里对应的是固件的文件路径,比如: rm /etc/config/luci | ||
cat >$DELETE <<-EOF | ||
EOF | ||
|
||
|
||
# 修改插件名字 | ||
sed -i 's/"aMule设置"/"电驴下载"/g' `grep "aMule设置" -rl ./` | ||
sed -i 's/"网络存储"/"NAS"/g' `grep "网络存储" -rl ./` | ||
sed -i 's/"Turbo ACC 网络加速"/"网络加速"/g' `grep "Turbo ACC 网络加速" -rl ./` | ||
sed -i 's/"实时流量监测"/"流量"/g' `grep "实时流量监测" -rl ./` | ||
sed -i 's/"KMS 服务器"/"KMS激活"/g' `grep "KMS 服务器" -rl ./` | ||
sed -i 's/"终端"/"命令窗"/g' `grep "终端" -rl ./` | ||
sed -i 's/"USB 打印服务器"/"打印服务"/g' `grep "USB 打印服务器" -rl ./` | ||
sed -i 's/"Web 管理"/"Web"/g' `grep "Web 管理" -rl ./` | ||
sed -i 's/"管理权"/"改密码"/g' `grep "管理权" -rl ./` | ||
sed -i 's/"Argon 主题设置"/"Argon设置"/g' `grep "Argon 主题设置" -rl ./` | ||
|
||
|
||
# 整理固件包时候,删除您不想要的固件或者文件,让它不需要上传到Actions空间 | ||
cat >${GITHUB_WORKSPACE}/Clear <<-EOF | ||
rm -rf config.buildinfo | ||
rm -rf feeds.buildinfo | ||
rm -rf openwrt-x86-64-generic-kernel.bin | ||
rm -rf openwrt-x86-64-generic.manifest | ||
rm -rf openwrt-x86-64-generic-squashfs-rootfs.img.gz | ||
rm -rf sha256sums | ||
rm -rf version.buildinfo | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
REPO_URL="https://github.com/immortalwrt/immortalwrt" # 编译固件源码链接(请勿修改) | ||
REPO_BRANCH="openwrt-21.02" # 源码链接的分支(请勿修改) | ||
CONFIG_FILE=".config" # 配置文件(可SSH远程定制固件插件,也可在本地提取配置粘贴到此文件) | ||
DIY_PART_SH="diy-part.sh" # 自定义文件(增加插件或者修改IP之类的自定义设置) | ||
SSH_ACTIONS="false" # SSH远程配置固件(true=开启)(false=关闭) | ||
UPLOAD_BIN_DIR="false" # 上传【bin文件夹】到github空间(true=开启)(false=关闭) | ||
UPLOAD_CONFIG="true" # 上传【.config】配置文件到github空间(true=开启)(false=关闭) | ||
UPLOAD_FIRMWARE="true" # 上传固件到github空间(true=开启)(false=关闭) | ||
UPLOAD_COWTRANSFER="false" # 上传固件到到【奶牛快传】和【WETRANSFER】(true=开启)(false=关闭) | ||
UPLOAD_RELEASE="false" # 发布固件(true=开启)(false=关闭) | ||
SERVERCHAN_SCKEY="TELE" # Telegram或push通知,填"TELE"为Telegram通知,填"PUSH"为pushplus通知,(false=关闭) | ||
USE_CACHEWRTBUILD="true" # 是否开启缓存加速,如出现带有缓存编译时莫名错误导致失败的,请关闭(true=开启)(false=关闭) | ||
REGULAR_UPDATE="true" # 把自动在线更新的插件编译进固件(请看说明)(true=开启)(false=关闭) | ||
BY_INFORMATION="true" # 是否显示编译信息,如出现信息显示错误导致信息不显示,请关闭(true=开启)(false=关闭) |
Oops, something went wrong.