mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-15 21:54:40 +08:00
delete enable dhcp ipv4 ipv6
This commit is contained in:
parent
9e9fd27eae
commit
7ccf14e1e9
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue