delete enable dhcp ipv4 ipv6

This commit is contained in:
Molly Lau 2023-04-15 19:56:26 +09:00 committed by GitHub
parent 9e9fd27eae
commit 7ccf14e1e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -897,11 +897,11 @@ EOF
checkSys checkSys
# Get the name of network adapter($interface). # Get the name of network adapter($interface).
[[ -z "$interface" ]] && interface=`getInterface "$CurrentOSCurrentOS" "$CurrentOSVer"` # [[ -z "$interface" ]] && interface=`getInterface "$CurrentOSCurrentOS" "$CurrentOSVer"`
# Try to enable IPv4 by DHCP # Try to enable IPv4 by DHCP
timeout 5 dhclient -4 $interface # timeout 5 dhclient -4 $interface
# Try to enable IPv6 by DHCP # Try to enable IPv6 by DHCP
timeout 5 dhclient -6 $interface # timeout 5 dhclient -6 $interface
checkIpv4OrIpv6 checkIpv4OrIpv6