2023.07.31

This commit is contained in:
spiritlhl 2023-07-31 00:57:17 +00:00
parent 5a4fb00963
commit c38d8fbaf8

View file

@ -896,7 +896,9 @@ rebuild_interfaces
fix_interfaces_ipv6_auto_type /etc/network/interfaces
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
echo "post-up /sbin/ethtool -K $auto_interface tx off rx off" >> /etc/network/interfaces
chattr +i /etc/network/interfaces
fi
# 部分机器中途service丢失了尝试修复
install_package service