mirror of
https://github.com/leitbogioro/Tools.git
synced 2025-11-08 08:20:39 +08:00
Update InstallNET.sh
This commit is contained in:
parent
d53c3a5122
commit
343e812dcd
1 changed files with 1 additions and 0 deletions
|
|
@ -2124,6 +2124,7 @@ function checkDHCP() {
|
|||
Network4Config="isDHCP"
|
||||
[[ `timeout 4s grep -iw "iface" $NetCfgWhole | grep -iw "$interface6" | grep -iw "inet6" | grep -ic "auto\|dhcp"` -ge "1" ]] && Network6Config="isDHCP" || Network6Config="isStatic"
|
||||
fi
|
||||
[[ -n $(grep "accept_ra" $NetCfgWhole) ]] && { Network4Config="isStatic"; Network6Config="isStatic"; }
|
||||
elif [[ "$1" == 'Ubuntu' && "$networkManagerType" == "netplan" ]]; then
|
||||
# For netplan(Ubuntu 18 and later), if network configuration is Static whether IPv4 or IPv6.
|
||||
# in "*.yaml" config file, dhcp(4 or 6): no or false doesn't exist is allowed.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue