From 6653aec6215ba295277fbc85a33d0c17254fab30 Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Fri, 16 Feb 2024 02:33:50 +0000 Subject: [PATCH] 2024.02.16 --- README.md | 1 + scripts/build_nat_network.sh | 13 ++++++++----- scripts/install_pve.sh | 1 + 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b66710d..f16f87c 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ 2024.02.16 +- 修复IPV6配置后的可用性检测,增加提示信息 - 修复ARM的服务器安装PVE时遇到的部分镜像链接不可用的情况,使用ping和curl双重检测确保链接的可用性 [更新日志](CHANGELOG.md) diff --git a/scripts/build_nat_network.sh b/scripts/build_nat_network.sh index 8c2c945..b5dc6c2 100644 --- a/scripts/build_nat_network.sh +++ b/scripts/build_nat_network.sh @@ -1,7 +1,7 @@ #!/bin/bash # from # https://github.com/spiritLHLS/pve -# 2024.02.02 +# 2024.02.16 ########## 预设部分输出和部分中间变量 @@ -635,10 +635,13 @@ if [ "$service_status" == "active" || "$service_status" == "activating" ]; then _green "The ndpresponder service started successfully and is running, and the host can open a service with a separate IPV6 address." _green "ndpresponder服务启动成功且正在运行,宿主机可开设带独立IPV6地址的服务。" else - _green "The status of the ndpresponder service is abnormal and the host may not open a service with a separate IPV6 address." - _green "ndpresponder服务状态异常,宿主机可能不可开设带独立IPV6地址的服务。" - _green "Restarting the server may resolve this issue." - _green "重启服务器可能解决此问题。" + if grep -q "vmbr2" /etc/network/interfaces; then + _green "Please perform reboot to reboot the server to load the IPV6 configuration, otherwise IPV6 is not available" + _green "请执行 reboot 重启服务器以加载IPV6配置,否则IPV6不可用" + else + _green "The status of the ndpresponder service is abnormal and the host can not open a service with a separate IPV6 address." + _green "ndpresponder服务状态异常,宿主机不可开设带独立IPV6地址的服务。" + fi fi # 打印信息 diff --git a/scripts/install_pve.sh b/scripts/install_pve.sh index 72e854c..5b8f596 100644 --- a/scripts/install_pve.sh +++ b/scripts/install_pve.sh @@ -821,6 +821,7 @@ fi install_package wget install_package curl install_package sudo +install_package ping install_package bc install_package iptables install_package lshw