mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-01-31 10:09:03 +08:00
Update install_pve.sh
This commit is contained in:
parent
a1caa7b64f
commit
6e8a6ab8ff
1 changed files with 1 additions and 1 deletions
|
@ -979,7 +979,7 @@ fi
|
|||
rebuild_interfaces
|
||||
fix_interfaces_ipv6_auto_type
|
||||
# 特殊处理Hetzner
|
||||
if [[ $dmidecode_output == *"Hetzner_vServer"* ]]; then
|
||||
if [[ $dmidecode_output == *"Hetzner_vServer"* ]] || [[ $dmidecode_output == *"Microsoft Corporation"* ]]; then
|
||||
auto_interface=$(grep '^auto ' /etc/network/interfaces | grep -v '^auto lo' | awk '{print $2}' | head -n 1)
|
||||
if ! grep -q "^post-up /sbin/ethtool" /etc/network/interfaces; then
|
||||
chattr -i /etc/network/interfaces
|
||||
|
|
Loading…
Reference in a new issue