Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
db-one committed Feb 11, 2025
1 parent d124815 commit bfade7a
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/OpenWrt-Actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ on:
type: boolean

# 定时触发编译(1,10,20早3点)
# schedule:
# - cron: 0 17 1,9,19 * *
schedule:
- cron: 0 17 1,9,11,19 * *

# 点赞☆Star触发编译
# watch:
Expand Down
10 changes: 7 additions & 3 deletions build/Lean_x86_64/custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ sed -i 's#192.168.1.1#10.0.0.1#g' $NET
sed -i 's@.*CYXluq4wUazHjmCDBCqXF*@#&@g' $ZZZ # 取消系统默认密码
sed -i "s/LEDE /ONE build $(TZ=UTC-8 date "+%Y.%m.%d") @ LEDE /g" $ZZZ # 增加自己个性名称
echo "uci set luci.main.mediaurlbase=/luci-static/argon" >> $ZZZ # 设置默认主题(如果编译可会自动修改默认主题的,有可能会失效)
sed -i 's#localtime = os.date()#localtime = os.date("%Y年%m月%d日") .. " " .. translate(os.date("%A")) .. " " .. os.date("%X")#g' package/lean/autocore/files/*/index.htm # 修改默认时间格式

# ●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●● #

sed -i 's#localtime = os.date()#localtime = os.date("%Y年%m月%d日") .. " " .. translate(os.date("%A")) .. " " .. os.date("%X")#g' package/lean/autocore/files/*/index.htm # 修改默认时间格式
sed -i 's#%D %V, %C#%D %V, %C Lean_x86_64#g' package/base-files/files/etc/banner # 自定义banner显示
# sed -i 's@list listen_https@# list listen_https@g' package/network/services/uhttpd/files/uhttpd.config # 停止监听443端口
# sed -i 's#option commit_interval 24h#option commit_interval 10m#g' feeds/packages/net/nlbwmon/files/nlbwmon.config # 修改流量统计写入为10分钟
Expand Down Expand Up @@ -149,7 +150,10 @@ fi
# =======================================================

# 修改退出命令到最后
sed -i '/exit 0/d' $ZZZ && echo "exit 0" >> $ZZZ
sed -i '/exit 0/d' $ZZZ
echo "exit 0" >> $ZZZ
echo "查看 default-settings 文件"
cat $ZZZ

# ●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●● #

Expand Down Expand Up @@ -259,7 +263,7 @@ EOF
cat >> .config <<EOF
# CONFIG_PACKAGE_luci-app-oaf=y #应用过滤
CONFIG_PACKAGE_luci-app-openclash=y #OpenClash客户端
CONFIG_PACKAGE_luci-app-mihomo=y #mihomo 客户端
CONFIG_PACKAGE_luci-app-nikki=y #nikki 客户端
# CONFIG_PACKAGE_luci-app-serverchan=y #微信推送
# CONFIG_PACKAGE_luci-app-eqos=y #IP限速
# CONFIG_PACKAGE_luci-app-control-weburl=y #网址过滤
Expand Down
10 changes: 7 additions & 3 deletions build/Lean_x86_64_Long/custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ sed -i 's#192.168.1.1#10.0.0.1#g' $NET
sed -i 's@.*CYXluq4wUazHjmCDBCqXF*@#&@g' $ZZZ # 取消系统默认密码
sed -i "s/LEDE /ONE build $(TZ=UTC-8 date "+%Y.%m.%d") @ LEDE /g" $ZZZ # 增加自己个性名称
echo "uci set luci.main.mediaurlbase=/luci-static/argon" >> $ZZZ # 设置默认主题(如果编译可会自动修改默认主题的,有可能会失效)
sed -i 's#localtime = os.date()#localtime = os.date("%Y年%m月%d日") .. " " .. translate(os.date("%A")) .. " " .. os.date("%X")#g' package/lean/autocore/files/*/index.htm # 修改默认时间格式

# ●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●● #

sed -i 's#localtime = os.date()#localtime = os.date("%Y年%m月%d日") .. " " .. translate(os.date("%A")) .. " " .. os.date("%X")#g' package/lean/autocore/files/*/index.htm # 修改默认时间格式
sed -i 's#%D %V, %C#%D %V, %C Lean_x86_64#g' package/base-files/files/etc/banner # 自定义banner显示
# sed -i 's@list listen_https@# list listen_https@g' package/network/services/uhttpd/files/uhttpd.config # 停止监听443端口
# sed -i 's#option commit_interval 24h#option commit_interval 10m#g' feeds/packages/net/nlbwmon/files/nlbwmon.config # 修改流量统计写入为10分钟
Expand Down Expand Up @@ -140,7 +141,10 @@ fi
# =======================================================

# 修改退出命令到最后
sed -i '/exit 0/d' $ZZZ && echo "exit 0" >> $ZZZ
sed -i '/exit 0/d' $ZZZ
echo "exit 0" >> $ZZZ
echo "查看 default-settings 文件"
cat $ZZZ

# ●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●● #

Expand Down Expand Up @@ -250,7 +254,7 @@ EOF
cat >> .config <<EOF
CONFIG_PACKAGE_luci-app-oaf=y #应用过滤
CONFIG_PACKAGE_luci-app-openclash=y #OpenClash客户端
CONFIG_PACKAGE_luci-app-mihomo=y #mihomo 客户端
CONFIG_PACKAGE_luci-app-nikki=y #nikki 客户端
# CONFIG_PACKAGE_luci-app-serverchan=y #微信推送
CONFIG_PACKAGE_luci-app-eqos=y #IP限速
# CONFIG_PACKAGE_luci-app-control-weburl=y #网址过滤
Expand Down
13 changes: 9 additions & 4 deletions build/immortalwrt_ax6600/custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ sed -i "s#ImmortalWrt#AX6600#g" $NET #
echo "uci set luci.main.mediaurlbase=/luci-static/argon" >> $ZZZ # 设置默认主题(如果编译可会自动修改默认主题的,有可能会失效)

# ●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●● #
# sed -i "/_('Firmware Version')/s/\(_('Firmware Version'), *\)/\1(\"ONE build $(TZ=UTC-8 date "+%Y.%m.%d") \" + /" feeds/luci/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/10_system.js # 增加自己个性名称

BUILDTIME=$(TZ=UTC-8 date "+%Y.%m.%d") && sed -i "s/\(_('Firmware Version'), *\)/\1 ('ONE build $BUILDTIME ') + /" feeds/luci/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/10_system.js # 增加自己个性名称

# ●●●●●●●●●●●●●●●●●●●●●●●●定制部分●●●●●●●●●●●●●●●●●●●●●●●● #

Expand Down Expand Up @@ -86,7 +87,8 @@ uci set network.ipv6.reqprefix='auto'
uci set firewall.@zone[0].network='lan ipv6'
# 配置Dropbear SSH服务
uci delete dropbear.main.RootPasswordAuth
uci del dropbear.main.RootPasswordAuth
uci del dropbear.main.DirectInterface
uci set dropbear.main.enable='1'
uci set dropbear.main.Interface='lan'
Expand Down Expand Up @@ -146,7 +148,10 @@ fi
# =======================================================

# 修改退出命令到最后
sed -i '/exit 0/d' $ZZZ && echo "exit 0" >> $ZZZ
sed -i '/exit 0/d' $ZZZ
echo "exit 0" >> $ZZZ
echo "查看 default-settings 文件"
cat $ZZZ

# ●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●● #

Expand Down Expand Up @@ -338,7 +343,7 @@ CONFIG_PACKAGE_luci-app-filetransfer=y #文件传输
CONFIG_PACKAGE_luci-app-openclash=n #OpenClash客户端
# mihomo 客户端
CONFIG_PACKAGE_luci-app-mihomo=n #mihomo 客户端
CONFIG_PACKAGE_luci-app-nikki=n #nikki 客户端
# HomeProxy
CONFIG_PACKAGE_luci-app-homeproxy=n
Expand Down
12 changes: 12 additions & 0 deletions build/immortalwrt_ax6600/files/etc/uci-defaults/99-settings.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@

#!/bin/bash

# 设置屏幕定时开关
sed -i '/athena_led/d' /etc/crontabs/root
echo '30 6 * * * /etc/init.d/athena_led start && logger "开启屏幕显示"' >> /etc/crontabs/root
echo '0 22 * * * /etc/init.d/athena_led stop && logger "关闭屏幕显示"' >> /etc/crontabs/root
crontab /etc/crontabs/root
# 设置屏幕配置
uci set athena_led.config.enable="1"
uci set athena_led.config.lightLevel="3"
uci set athena_led.config.option="timeBlink"
uci commit athena_led
/etc/init.d/athena_led restart

# 软件源设置
cat << EOF > "/etc/opkg/distfeeds.conf"
src/gz openwrt_base https://downloads.immortalwrt.org/releases/24.10-SNAPSHOT/packages/aarch64_cortex-a53/base/
Expand Down
11 changes: 7 additions & 4 deletions build/immortalwrt_x86_64/custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ sed -i "s#192.168.1.1#10.0.0.1#g" $NET
# sed -i "s#ImmortalWrt#ImmortalWrt-X86#g" $NET # 修改默认名称为 ImmortalWrt-X86
# sed -i 's@.*CYXluq4wUazHjmCDBCqXF*@#&@g' $ZZZ # 取消系统默认密码
echo "uci set luci.main.mediaurlbase=/luci-static/argon" >> $ZZZ # 设置默认主题(如果编译可会自动修改默认主题的,有可能会失效)
# sed -i 's#localtime = os.date()#localtime = os.date("%Y年%m月%d日") .. " " .. translate(os.date("%A")) .. " " .. os.date("%X")#g' package/lean/autocore/files/*/index.htm # 修改默认时间格式

# ●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●● #
# sed -i "/_('Firmware Version')/s/\(_('Firmware Version'), *\)/\1(\"ONE build $(TZ=UTC-8 date "+%Y.%m.%d") \" + /" feeds/luci/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/10_system.js # 增加自己个性名称

BUILDTIME=$(TZ=UTC-8 date "+%Y.%m.%d") && sed -i "s/\(_('Firmware Version'), *\)/\1 ('ONE build $BUILDTIME ') + /" feeds/luci/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/10_system.js # 增加自己个性名称
# sed -i "s@list listen_https@# list listen_https@g" package/network/services/uhttpd/files/uhttpd.config # 停止监听443端口
# sed -i '/exit 0/i\ethtool -s eth0 speed 2500 duplex full' package/base-files/files//etc/rc.local # 强制显示2500M和全双工(默认PVE下VirtIO不识别) ImmortalWrt固件内不显示端口状态,可以关闭

Expand Down Expand Up @@ -142,7 +142,10 @@ fi
# =======================================================

# 修改退出命令到最后
sed -i '/exit 0/d' $ZZZ && echo "exit 0" >> $ZZZ
sed -i '/exit 0/d' $ZZZ
echo "exit 0" >> $ZZZ
echo "查看 default-settings 文件"
cat $ZZZ

# ●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●● #

Expand Down Expand Up @@ -252,7 +255,7 @@ EOF
cat >> .config <<EOF
# CONFIG_PACKAGE_luci-app-oaf=y #应用过滤
CONFIG_PACKAGE_luci-app-openclash=y #OpenClash客户端
CONFIG_PACKAGE_luci-app-mihomo=y #mihomo 客户端
CONFIG_PACKAGE_luci-app-nikki=y #nikki 客户端
# CONFIG_PACKAGE_luci-app-serverchan=y #微信推送
# CONFIG_PACKAGE_luci-app-eqos=y #IP限速
# CONFIG_PACKAGE_luci-app-control-weburl=y #网址过滤
Expand Down

0 comments on commit bfade7a

Please sign in to comment.