aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2016-06-16 13:58:15 +0200
committerLukas Nykryn <lnykryn@redhat.com>2016-06-16 13:58:15 +0200
commitf8eca61d5af878ddffb584a77158a21e13024e6d (patch)
treeb6c9cdda559d73025b1401539b8e312c106989d2 /sysconfig
parent61fb1cb4efd62120ffbc021d7fdee1cd25059c08 (diff)
downloadinitscripts-f8eca61d5af878ddffb584a77158a21e13024e6d.tar
initscripts-f8eca61d5af878ddffb584a77158a21e13024e6d.tar.gz
initscripts-f8eca61d5af878ddffb584a77158a21e13024e6d.tar.bz2
initscripts-f8eca61d5af878ddffb584a77158a21e13024e6d.tar.xz
initscripts-f8eca61d5af878ddffb584a77158a21e13024e6d.zip
ifup: don't call nmcli on any lo device
Resolves: #1336869
Diffstat (limited to 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/ifup2
-rw-r--r--sysconfig/network-scripts/network-functions2
2 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index 2b826e2d..f1678eb3 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -65,7 +65,7 @@ then
exit 0
fi
-if [ "$_use_nm" = "true" -a -n "$UUID" -a "$DEVICE" != "lo" ]; then
+if [ "$_use_nm" = "true" -a -n "$UUID" -a "$REALDEVICE" != "lo" ]; then
if [ "foo$2" = "fooboot" ] && [ "${TYPE}" = "Wireless" ]; then
exit 0
fi
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index d1f12560..639fdb69 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -170,7 +170,7 @@ source_config ()
else
ISALIAS=no
fi
- if is_nm_running; then
+ if is_nm_running && [ "$REALDEVICE" != "lo" ] ; then
nmcli con load "/etc/sysconfig/network-scripts/$CONFIG"
if ! is_false $NM_CONTROLLED; then
UUID=$(get_uuid_by_config $CONFIG)