mirror of
https://github.com/bin456789/reinstall.git
synced 2025-10-05 14:34:53 +00:00
优化代码
This commit is contained in:
@@ -116,7 +116,7 @@ fix_networkd_conf() {
|
||||
# Gateway=2602::1
|
||||
# GatewayOnLink=yes
|
||||
|
||||
if ! confs=$(ls /etc/systemd/network/10-cloud-init-*.network); then
|
||||
if ! confs=$(ls /etc/systemd/network/10-cloud-init-*.network 2>/dev/null); then
|
||||
return
|
||||
fi
|
||||
|
||||
@@ -163,7 +163,7 @@ fix_wicked_conf() {
|
||||
# default 1.1.1.1 - -
|
||||
# default 2602::1 - -
|
||||
|
||||
if ! confs=$(ls /etc/sysconfig/network/ifroute-*); then
|
||||
if ! confs=$(ls /etc/sysconfig/network/ifroute-* 2>/dev/null); then
|
||||
return
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user