mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-18 20:39:14 +08:00
core: 修复甲骨文没有 IPv6 时,开机需要等 DHCPv6 超时
甲骨文即使没有添加 IPv6 地址,RA DHCPv6 标志也是开的 部分系统开机需要等 DHCPv6 超时 这种情况需要禁用 DHCPv6
This commit is contained in:
parent
6024a8434a
commit
b9923ae638
9
trans.sh
9
trans.sh
@ -487,7 +487,16 @@ is_dhcpv6() {
|
||||
return 1
|
||||
fi
|
||||
get_netconf_to dhcpv6
|
||||
|
||||
# shellcheck disable=SC2154
|
||||
# 甲骨文即使没有添加 IPv6 地址,RA DHCPv6 标志也是开的
|
||||
# 部分系统开机需要等 DHCPv6 超时
|
||||
# 这种情况需要禁用 DHCPv6
|
||||
if [ "$dhcpv6" = 1 ] && ! ip -6 -o addr show scope global dev "$ethx" | grep -q .; then
|
||||
echo 'DHCPv6 flag is on, but DHCPv6 is not working.'
|
||||
return 1
|
||||
fi
|
||||
|
||||
[ "$dhcpv6" = 1 ]
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user