From 7ccf14e1e9dab7e9483c70c37a3b78dae213442b Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Sat, 15 Apr 2023 19:56:26 +0900 Subject: [PATCH] delete enable dhcp ipv4 ipv6 --- Linux_reinstall/InstallNET.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Linux_reinstall/InstallNET.sh b/Linux_reinstall/InstallNET.sh index 3f00d4a..5aeb1fd 100644 --- a/Linux_reinstall/InstallNET.sh +++ b/Linux_reinstall/InstallNET.sh @@ -897,11 +897,11 @@ EOF checkSys # 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 -timeout 5 dhclient -4 $interface +# timeout 5 dhclient -4 $interface # Try to enable IPv6 by DHCP -timeout 5 dhclient -6 $interface +# timeout 5 dhclient -6 $interface checkIpv4OrIpv6