This commit is contained in:
spiritlhl 2023-06-26 01:44:53 +00:00
parent 37bac9536d
commit 8e4a0a95ca

View file

@ -198,7 +198,8 @@ ${sysctl_path} -p
# 重启配置
service networking restart
systemctl restart networking.service
ifreload -ad
# sleep 3
# ifreload -ad
# 已加载网络,删除对应缓存文件
if [ -f "/etc/network/interfaces.new" ];then
chattr -i /etc/network/interfaces.new