aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2010-03-01 16:12:29 -0500
committerBill Nottingham <notting@redhat.com>2010-03-01 16:12:29 -0500
commitb3180a743f5a80c97ea86d4ae3076920aef1c027 (patch)
tree104e61e8bf5556456efdf26b5033bab2b374b3e1 /sysconfig/network-scripts/ifup
parent9909d11f0a40b093a2b40e241215436fe71c5fa4 (diff)
downloadinitscripts-b3180a743f5a80c97ea86d4ae3076920aef1c027.tar
initscripts-b3180a743f5a80c97ea86d4ae3076920aef1c027.tar.gz
initscripts-b3180a743f5a80c97ea86d4ae3076920aef1c027.tar.bz2
initscripts-b3180a743f5a80c97ea86d4ae3076920aef1c027.tar.xz
initscripts-b3180a743f5a80c97ea86d4ae3076920aef1c027.zip
Only use UUID to bring connections up/down; ensure we have a UUID by asking NM for it.
Diffstat (limited to 'sysconfig/network-scripts/ifup')
-rwxr-xr-xsysconfig/network-scripts/ifup8
1 files changed, 2 insertions, 6 deletions
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