Update reinstall.sh

This commit is contained in:
akarin233 2025-02-05 15:19:33 +08:00 committed by GitHub
parent f578fcc8db
commit 527ced19ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3227,13 +3227,13 @@ get_ip_conf_cmd() {
sh=/initrd-network.sh
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' '$static'"
else
if is_found_ipv4_netconf; then
echo "'$sh' '$ipv4_mac' '$ipv4_addr' '$ipv4_gateway' '' '' '$is_in_china'"
echo "'$sh' '$ipv4_mac' '$ipv4_addr' '$ipv4_gateway' '' '' '$is_in_china' '$static'"
fi
if is_found_ipv6_netconf; then
echo "'$sh' '$ipv6_mac' '' '' '$ipv6_addr' '$ipv6_gateway' '$is_in_china'"
echo "'$sh' '$ipv6_mac' '' '' '$ipv6_addr' '$ipv6_gateway' '$is_in_china' '$static'"
fi
fi
}
@ -3484,6 +3484,8 @@ else
fi
fi
static=1
long_opts=
for o in ci installer debug minimal allow-ping \
hold: sleep: \
@ -3494,6 +3496,7 @@ for o in ci installer debug minimal allow-ping \
lang: \
passwd: password: \
ssh-port: \
static: \
rdp-port: \
web-port: http-port: \
allow-ping: \
@ -3597,6 +3600,9 @@ while true; do
lang=$(echo "$2" | to_lower)
shift 2
;;
--static)
static=0
shift 2
--)
shift
break