Skip to content

Commit

Permalink
Update diy-part.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
paomo8707 authored May 24, 2024
1 parent 7cb0004 commit 363afce
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions build/Lede/diy-part.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@


# 后台IP设置
export Ipv4_ipaddr="192.168.2.1" # 修改openwrt后台地址(填0为关闭)
export Ipv4_ipaddr="192.168.1.1" # 修改openwrt后台地址(填0为关闭)
export Netmask_netm="255.255.255.0" # IPv4 子网掩码(默认:255.255.255.0)(填0为不作修改)
export Op_name="OpenWrt" # 修改主机名称为OpenWrt(填0为不作修改)
export Op_name="PaoMo" # 修改主机名称为OpenWrt(填0为不作修改)

# 内核和系统分区大小(不是每个机型都可用)
export Kernel_partition_size="0" # 内核分区大小,每个机型默认值不一样 (填写您想要的数值,默认一般16,数值以MB计算,填0为不作修改),如果你不懂就填0
Expand All @@ -19,16 +19,16 @@ export Mandatory_theme="argon" # 将bootstrap替换您需要的主
export Default_theme="argon" # 多主题时,选择某主题为默认第一主题 (填写主题名称,填0为不作修改)

# 旁路由选项
export Gateway_Settings="0" # 旁路由设置 IPv4 网关(填入您的网关IP为启用)(填0为不作修改)
export DNS_Settings="0" # 旁路由设置 DNS(填入DNS,多个DNS要用空格分开)(填0为不作修改)
export Gateway_Settings="192.168.1.2" # 旁路由设置 IPv4 网关(填入您的网关IP为启用)(填0为不作修改)
export DNS_Settings="223.6.6.6" # 旁路由设置 DNS(填入DNS,多个DNS要用空格分开)(填0为不作修改)
export Broadcast_Ipv4="0" # 设置 IPv4 广播(填入您的IP为启用)(填0为不作修改)
export Disable_DHCP="0" # 旁路由关闭DHCP功能(1为启用命令,填0为不作修改)
export Disable_DHCP="1" # 旁路由关闭DHCP功能(1为启用命令,填0为不作修改)
export Disable_Bridge="0" # 旁路由去掉桥接模式(1为启用命令,填0为不作修改)
export Create_Ipv6_Lan="0" # 爱快+OP双系统时,爱快接管IPV6,在OP创建IPV6的lan口接收IPV6信息(1为启用命令,填0为不作修改)

# IPV6、IPV4 选择
export Enable_IPV6_function="1" # 编译IPV6固件(1为启用命令,填0为不作修改)(如果跟Create_Ipv6_Lan一起启用命令的话,Create_Ipv6_Lan命令会自动关闭)
export Enable_IPV4_function="0" # 编译IPV4固件(1为启用命令,填0为不作修改)(如果跟Enable_IPV6_function一起启用命令的话,此命令会自动关闭)
export Enable_IPV6_function="0" # 编译IPV6固件(1为启用命令,填0为不作修改)(如果跟Create_Ipv6_Lan一起启用命令的话,Create_Ipv6_Lan命令会自动关闭)
export Enable_IPV4_function="1" # 编译IPV4固件(1为启用命令,填0为不作修改)(如果跟Enable_IPV6_function一起启用命令的话,此命令会自动关闭)

# 替换passwall的源码(默认luci分支)
export PassWall_luci_branch="0" # passwall的源码分别有【luci分支】和【luci-smartdns-new-version分支】(填0为使用luci分支,填1为使用luci-smartdns-new-version分支)
Expand All @@ -38,7 +38,7 @@ export OpenClash_branch="0" # OpenClash的源码分别有【mast
export OpenClash_Core="2" # 增加OpenClash时,把核心下载好,(填1为下载【dev单核】,填2为下载【dev/meta/premium三核】,填0为不需要核心)

# 个性签名,默认增加年月日[$(TZ=UTC-8 date "+%Y.%m.%d")]
export Customized_Information="大灰狼 $(TZ=UTC-8 date "+%Y.%m.%d")" # 个性签名,你想写啥就写啥,(填0为不作修改)
export Customized_Information="泡沫 $(TZ=UTC-8 date "+%Y.%m.%d")" # 个性签名,你想写啥就写啥,(填0为不作修改)

# 更换固件内核
export Replace_Kernel="6.6" # 更换内核版本,在对应源码的[target/linux/架构]查看patches-x.x,看看x.x有啥就有啥内核了(填入内核x.x版本号,填0为不作修改)
Expand All @@ -47,7 +47,7 @@ export Replace_Kernel="6.6" # 更换内核版本,在对应源
export Password_free_login="1" # 设置首次登录后台密码为空(进入openwrt后自行修改密码)(1为启用命令,填0为不作修改)

# 增加AdGuardHome插件和核心
export AdGuardHome_Core="1" # 编译固件时自动增加AdGuardHome插件和AdGuardHome插件核心,需要注意的是一个核心20多MB的,小闪存机子搞不来(1为启用命令,填0为不作修改)
export AdGuardHome_Core="0" # 编译固件时自动增加AdGuardHome插件和AdGuardHome插件核心,需要注意的是一个核心20多MB的,小闪存机子搞不来(1为启用命令,填0为不作修改)

# 禁用ssrplus和passwall的NaiveProxy
export Disable_NaiveProxy="1" # 因个别源码的分支不支持编译NaiveProxy,不小心选择了就编译错误了,为减少错误,打开这个选项后,就算选择了NaiveProxy也会把NaiveProxy干掉不进行编译的(1为启用命令,填0为不作修改)
Expand All @@ -56,10 +56,10 @@ export Disable_NaiveProxy="1" # 因个别源码的分支不支持
export Automatic_Mount_Settings="0" # 编译时加入开启NTFS格式盘挂载的所需依赖(1为启用命令,填0为不作修改)

# 去除网络共享(autosamba)
export Disable_autosamba="0" # 去掉源码默认自选的luci-app-samba或luci-app-samba4(1为启用命令,填0为不作修改)
export Disable_autosamba="1" # 去掉源码默认自选的luci-app-samba或luci-app-samba4(1为启用命令,填0为不作修改)

# 强制显示2500M和全双工(默认PVE下VirtIO不识别)
# sed -i '/exit 0/i\ethtool -s eth0 speed 10000 duplex full' /etc/rc.local
#sed -i '/exit 0/i\ethtool -s eth0 speed 10000 duplex full' /etc/rc.local

# 手动更换默认主题
# uci set luci.main.mediaurlbase='/luci-static/neobird' && uci commit luci
Expand Down

0 comments on commit 363afce

Please sign in to comment.