aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/network-functions
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-rw-r--r--sysconfig/network-scripts/network-functions10
1 files changed, 9 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index c1da9888..8a79802c 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -171,7 +171,7 @@ source_config ()
ISALIAS=no
fi
if is_nm_running && [ "$REALDEVICE" != "lo" ] ; then
- nmcli con load "/etc/sysconfig/network-scripts/$CONFIG"
+ nm_con_load "$CONFIG"
if ! is_false $NM_CONTROLLED; then
UUID=$(get_uuid_by_config $CONFIG)
[ -n "$UUID" ] && _use_nm=true
@@ -179,6 +179,14 @@ source_config ()
fi
}
+nm_con_load () {
+ dbus-send --system --print-reply \
+ --dest=org.freedesktop.NetworkManager \
+ /org/freedesktop/NetworkManager/Settings \
+ org.freedesktop.NetworkManager.Settings.LoadConnections \
+ array:string:"/etc/sysconfig/network-scripts/${1}" >/dev/null 2>&1
+}
+
ethtool_set()
{
oldifs=$IFS;