diff options
author | Bill Nottingham <notting@redhat.com> | 2010-02-16 15:17:03 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2010-03-01 16:03:36 -0500 |
commit | c43e3361caca18a78e58fca3db57ce513d18d694 (patch) | |
tree | 8053e9ce216da980758aa1853eac6b00340406d9 /sysconfig/network-scripts/network-functions | |
parent | 7623065694b1b84bf99f2425ff91cf5655e4d981 (diff) | |
download | initscripts-c43e3361caca18a78e58fca3db57ce513d18d694.tar initscripts-c43e3361caca18a78e58fca3db57ce513d18d694.tar.gz initscripts-c43e3361caca18a78e58fca3db57ce513d18d694.tar.bz2 initscripts-c43e3361caca18a78e58fca3db57ce513d18d694.tar.xz initscripts-c43e3361caca18a78e58fca3db57ce513d18d694.zip |
Use NM if it's running and we have a configuration for the device.
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 } |