diff options
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-rw-r--r-- | sysconfig/network-scripts/network-functions | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index 313e42fd..0eaf8e10 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -139,6 +139,10 @@ source_config () ISALIAS=no fi is_nm_running && USE_NM=true + if [ -z "$NAME" -a "$USE_NM" = "true" ]; then + UUID=$(nmcli -t con list id "System ${DEVICE}" 2>/dev/null| awk '/uuid :/ { print $3 }') + [ -n "$UUID" ] && NAME="System ${DEVICE}" + fi } |