mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-03-04 01:38:12 +08:00
特殊处理Exoscale平台
This commit is contained in:
parent
4d1b935b4e
commit
e527358e34
1 changed files with 2 additions and 2 deletions
|
@ -888,7 +888,7 @@ if [ ! -f "/usr/local/bin/reboot_pve.txt" ]; then
|
|||
# prebuild_ifupdown2
|
||||
# fi
|
||||
fi
|
||||
if [[ $dmidecode_output == *"Hetzner_vServer"* ]]; then
|
||||
if [[ $dmidecode_output == *"Hetzner_vServer"* ]] || [ $dmidecode_output == *"Exoscale Compute Platform"* ]; then
|
||||
# 特殊处理Hetzner
|
||||
prebuild_ifupdown2
|
||||
fi
|
||||
|
@ -1118,7 +1118,7 @@ rebuild_interfaces
|
|||
fix_interfaces_ipv6_auto_type
|
||||
|
||||
# 特殊处理Hetzner和Azure的情况
|
||||
if [[ $dmidecode_output == *"Hetzner_vServer"* ]] || [[ $dmidecode_output == *"Microsoft Corporation"* ]]; then
|
||||
if [[ $dmidecode_output == *"Hetzner_vServer"* ]] || [[ $dmidecode_output == *"Microsoft Corporation"* ]] || [ $dmidecode_output == *"Exoscale Compute Platform"* ]; then
|
||||
auto_interface=$(grep '^auto ' /etc/network/interfaces | grep -v '^auto lo' | awk '{print $2}' | head -n 1)
|
||||
if ! grep -q "^post-up ${ethtool_path}" /etc/network/interfaces; then
|
||||
chattr -i /etc/network/interfaces
|
||||
|
|
Loading…
Reference in a new issue