diff options
author | Bill Nottingham <notting@redhat.com> | 2010-02-16 15:17:03 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2010-04-09 16:35:45 -0400 |
commit | 08adb9935d28b9e9d2e91e6beeeb6cdbd0fc6e5e (patch) | |
tree | c6901848e5ebabcc83cc884cca5f3a003264882f /sysconfig/network-scripts/network-functions | |
parent | cdeec66b8611b1ebf034ca3a0c8ab0a05ddbf82e (diff) | |
download | initscripts-08adb9935d28b9e9d2e91e6beeeb6cdbd0fc6e5e.tar initscripts-08adb9935d28b9e9d2e91e6beeeb6cdbd0fc6e5e.tar.gz initscripts-08adb9935d28b9e9d2e91e6beeeb6cdbd0fc6e5e.tar.bz2 initscripts-08adb9935d28b9e9d2e91e6beeeb6cdbd0fc6e5e.tar.xz initscripts-08adb9935d28b9e9d2e91e6beeeb6cdbd0fc6e5e.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 b6a9e1e4..9eace72a 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -133,6 +133,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 } |