优化网络脚本
This commit is contained in:
parent
e13f27ab84
commit
0adbc41628
|
@ -13,11 +13,6 @@ if [ ${TYPE%?} != "NVR" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 如果不存在配置需要重新添加配置
|
|
||||||
if test ! -z "$(nmcli connection | grep enP1p17s0)"; then
|
|
||||||
nmcli connection add type ethernet con-name enP1p17s0 ifname enP1p17s0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 手动创建eth0内网配置
|
# 手动创建eth0内网配置
|
||||||
/etc/NetworkManager/dispatcher.d/10-network-config.sh eth0 up
|
/etc/NetworkManager/dispatcher.d/10-network-config.sh eth0 up
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user