core: 修复 initrd 阶段没写入 ipv6 dns

fixes #139
This commit is contained in:
bin456789 2024-08-19 11:08:07 +08:00
parent f82c9ad784
commit ae012a79f1
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -292,7 +292,7 @@ if $ipv4_has_internet && ! { [ -e /etc/resolv.conf ] && grep -F '.' /etc/resolv.
echo "nameserver $ipv4_dns1" >>/etc/resolv.conf
echo "nameserver $ipv4_dns2" >>/etc/resolv.conf
fi
if $ipv4_has_internet && ! { [ -e /etc/resolv.conf ] && grep -F ':' /etc/resolv.conf; }; then
if $ipv6_has_internet && ! { [ -e /etc/resolv.conf ] && grep -F ':' /etc/resolv.conf; }; then
echo "nameserver $ipv6_dns1" >>/etc/resolv.conf
echo "nameserver $ipv6_dns2" >>/etc/resolv.conf
fi