From b3180a743f5a80c97ea86d4ae3076920aef1c027 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 1 Mar 2010 16:12:29 -0500 Subject: Only use UUID to bring connections up/down; ensure we have a UUID by asking NM for it. --- sysconfig/network-scripts/ifup | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'sysconfig/network-scripts/ifup') diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index d9095dc7..cc5efc97 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -65,12 +65,8 @@ then exit 0 fi -if [ "$USE_NM" = "true" -a -n "$NAME" -o -n "$UUID" ]; then - if [ -n "$UUID" ]; then - nmcli con up uuid "$UUID" - elif [ -n "$NAME" ]; then - nmcli con up id "$NAME" - fi +if [ "$USE_NM" = "true" -a -n "$UUID" ]; then + nmcli con up uuid "$UUID" exit $? fi -- cgit v1.2.1