优化网络脚本

This commit is contained in:
hehaoyang 2024-07-31 00:11:24 +08:00
parent e13f27ab84
commit 0adbc41628

View File

@ -13,11 +13,6 @@ if [ ${TYPE%?} != "NVR" ]; then
exit 1
fi
# 如果不存在配置需要重新添加配置
if test ! -z "$(nmcli connection | grep enP1p17s0)"; then
nmcli connection add type ethernet con-name enP1p17s0 ifname enP1p17s0
fi
# 手动创建eth0内网配置
/etc/NetworkManager/dispatcher.d/10-network-config.sh eth0 up