core: alpine-network.sh 改名为 initrd-network.sh

This commit is contained in:
bin456789 2024-11-23 23:50:09 +08:00
parent ae1875f1e7
commit 6faca06003
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B
2 changed files with 3 additions and 3 deletions

View File

@ -2964,7 +2964,7 @@ get_ip_conf_cmd() {
collect_netconf >&2 collect_netconf >&2
is_in_china && is_in_china=true || is_in_china=false is_in_china && is_in_china=true || is_in_china=false
sh=/alpine-network.sh sh=/initrd-network.sh
if is_found_ipv4_netconf && is_found_ipv6_netconf && [ "$ipv4_mac" = "$ipv6_mac" ]; then if is_found_ipv4_netconf && is_found_ipv6_netconf && [ "$ipv4_mac" = "$ipv6_mac" ]; then
echo "'$sh' '$ipv4_mac' '$ipv4_addr' '$ipv4_gateway' '$ipv6_addr' '$ipv6_gateway' '$is_in_china'" echo "'$sh' '$ipv4_mac' '$ipv4_addr' '$ipv4_gateway' '$ipv6_addr' '$ipv6_gateway' '$is_in_china'"
else else
@ -3099,8 +3099,8 @@ This script is outdated, please download reinstall.sh again.
脚本有更新,请重新下载 reinstall.sh" 脚本有更新,请重新下载 reinstall.sh"
fi fi
curl -Lo $initrd_dir/alpine-network.sh $confhome/alpine-network.sh curl -Lo $initrd_dir/initrd-network.sh $confhome/initrd-network.sh
chmod a+x $initrd_dir/trans.sh $initrd_dir/alpine-network.sh chmod a+x $initrd_dir/trans.sh $initrd_dir/initrd-network.sh
# 保存配置 # 保存配置
mkdir -p $initrd_dir/configs mkdir -p $initrd_dir/configs