2019-09-14 00:02:38 +01:00
|
|
|
diff --git a/clients/common/nm-vpn-helpers.c b/clients/common/nm-vpn-helpers.c
|
2019-12-23 03:02:09 +00:00
|
|
|
index ffae5f553..ba1093e4d 100644
|
2018-07-05 21:30:53 +01:00
|
|
|
--- a/clients/common/nm-vpn-helpers.c
|
|
|
|
+++ b/clients/common/nm-vpn-helpers.c
|
2019-12-23 03:02:09 +00:00
|
|
|
@@ -203,10 +203,7 @@ nm_vpn_openconnect_authenticate_helper (const char *host,
|
2018-12-21 23:58:48 +00:00
|
|
|
NULL,
|
|
|
|
};
|
2018-07-05 21:30:53 +01:00
|
|
|
|
2018-12-21 23:58:48 +00:00
|
|
|
- path = nm_utils_file_search_in_paths ("openconnect", "/usr/sbin/openconnect", DEFAULT_PATHS,
|
|
|
|
- G_FILE_TEST_IS_EXECUTABLE, NULL, NULL, error);
|
|
|
|
- if (!path)
|
|
|
|
- return FALSE;
|
2018-07-05 21:30:53 +01:00
|
|
|
+ path = "@openconnect@/bin/openconnect";
|
|
|
|
|
2019-09-14 00:02:38 +01:00
|
|
|
if (!g_spawn_sync (NULL,
|
|
|
|
(char **) NM_MAKE_STRV (path, "--authenticate", host),
|
|
|
|
diff --git a/data/84-nm-drivers.rules b/data/84-nm-drivers.rules
|
2019-12-23 03:02:09 +00:00
|
|
|
index e398cb9f2..a43d61864 100644
|
2018-12-21 23:58:48 +00:00
|
|
|
--- a/data/84-nm-drivers.rules
|
|
|
|
+++ b/data/84-nm-drivers.rules
|
2019-09-14 00:02:38 +01:00
|
|
|
@@ -7,6 +7,6 @@ ACTION!="add|change", GOTO="nm_drivers_end"
|
2018-12-21 23:58:48 +00:00
|
|
|
# Determine ID_NET_DRIVER if there's no ID_NET_DRIVER or DRIVERS (old udev?)
|
|
|
|
ENV{ID_NET_DRIVER}=="?*", GOTO="nm_drivers_end"
|
|
|
|
DRIVERS=="?*", GOTO="nm_drivers_end"
|
2019-09-14 00:02:38 +01:00
|
|
|
-PROGRAM="/bin/sh -c '/usr/sbin/ethtool -i $$1 |/usr/bin/sed -n s/^driver:\ //p' -- $env{INTERFACE}", ENV{ID_NET_DRIVER}="%c"
|
2019-12-23 03:02:09 +00:00
|
|
|
+PROGRAM="@runtimeShell@ -c '@ethtool@/bin/ethtool -i $$1 |@gnused@/bin/sed -n s/^driver:\ //p' -- $env{INTERFACE}", ENV{ID_NET_DRIVER}="%c"
|
2018-12-21 23:58:48 +00:00
|
|
|
|
|
|
|
LABEL="nm_drivers_end"
|
2019-09-14 00:02:38 +01:00
|
|
|
diff --git a/data/NetworkManager.service.in b/data/NetworkManager.service.in
|
2019-12-23 03:02:09 +00:00
|
|
|
index 91ebd9a36..5201a56c3 100644
|
2018-12-21 23:58:48 +00:00
|
|
|
--- a/data/NetworkManager.service.in
|
|
|
|
+++ b/data/NetworkManager.service.in
|
2019-09-14 00:02:38 +01:00
|
|
|
@@ -8,7 +8,7 @@ Before=network.target @DISTRO_NETWORK_SERVICE@
|
2018-12-21 23:58:48 +00:00
|
|
|
[Service]
|
|
|
|
Type=dbus
|
|
|
|
BusName=org.freedesktop.NetworkManager
|
2019-12-23 03:02:09 +00:00
|
|
|
-ExecReload=/usr/bin/busctl call org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager Reload u 0
|
|
|
|
+ExecReload=@systemd@/bin/busctl call org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager Reload u 0
|
2018-12-21 23:58:48 +00:00
|
|
|
#ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
ExecStart=@sbindir@/NetworkManager --no-daemon
|
|
|
|
Restart=on-failure
|
2019-10-12 02:33:44 +01:00
|
|
|
diff --git a/libnm/meson.build b/libnm/meson.build
|
2019-12-23 03:02:09 +00:00
|
|
|
index 51ca46d2b..0c04cc216 100644
|
2019-10-12 02:33:44 +01:00
|
|
|
--- a/libnm/meson.build
|
|
|
|
+++ b/libnm/meson.build
|
2019-12-23 03:02:09 +00:00
|
|
|
@@ -261,7 +261,7 @@ if enable_introspection
|
2019-10-12 02:33:44 +01:00
|
|
|
name,
|
|
|
|
input: libnm_gir[0],
|
|
|
|
output: name,
|
|
|
|
- command: [generate_setting_docs_env, python.path(), generate_setting_docs, '--lib-path', meson.current_build_dir(), '--gir', '@INPUT@', '--output', '@OUTPUT@'],
|
|
|
|
+ command: [generate_setting_docs_env, generate_setting_docs, '--lib-path', meson.current_build_dir(), '--gir', '@INPUT@', '--output', '@OUTPUT@'],
|
|
|
|
depends: libnm_gir,
|
|
|
|
)
|
|
|
|
|
2019-12-23 03:02:09 +00:00
|
|
|
@@ -270,7 +270,7 @@ if enable_introspection
|
2019-10-12 02:33:44 +01:00
|
|
|
name,
|
2019-12-23 03:02:09 +00:00
|
|
|
input: [libnm_gir[0], nm_settings_docs_overrides],
|
2019-10-12 02:33:44 +01:00
|
|
|
output: name,
|
2019-12-23 03:02:09 +00:00
|
|
|
- command: [generate_setting_docs_env, python.path(), generate_setting_docs, '--lib-path', meson.current_build_dir(), '--gir', '@INPUT0@', '--overrides', '@INPUT1@', '--output', '@OUTPUT@'],
|
|
|
|
+ command: [generate_setting_docs_env, generate_setting_docs, '--lib-path', meson.current_build_dir(), '--gir', '@INPUT0@', '--overrides', '@INPUT1@', '--output', '@OUTPUT@'],
|
2019-10-12 02:33:44 +01:00
|
|
|
depends: libnm_gir,
|
|
|
|
)
|
|
|
|
endif
|
2019-09-14 00:02:38 +01:00
|
|
|
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
|
2019-12-23 03:02:09 +00:00
|
|
|
index e7a4a059a..0a8f8b7c6 100644
|
2018-07-05 21:30:53 +01:00
|
|
|
--- a/src/devices/nm-device.c
|
|
|
|
+++ b/src/devices/nm-device.c
|
2019-12-23 03:02:09 +00:00
|
|
|
@@ -13179,14 +13179,14 @@ nm_device_start_ip_check (NMDevice *self)
|
2018-07-05 21:30:53 +01:00
|
|
|
gw = nm_ip4_config_best_default_route_get (priv->ip_config_4);
|
|
|
|
if (gw) {
|
|
|
|
nm_utils_inet4_ntop (NMP_OBJECT_CAST_IP4_ROUTE (gw)->gateway, buf);
|
|
|
|
- ping_binary = nm_utils_find_helper ("ping", "/usr/bin/ping", NULL);
|
2019-04-23 04:12:53 +01:00
|
|
|
+ ping_binary = "@iputils@/bin/ping";
|
2018-07-05 21:30:53 +01:00
|
|
|
log_domain = LOGD_IP4;
|
|
|
|
}
|
2019-03-07 15:44:02 +00:00
|
|
|
} else if (priv->ip_config_6 && priv->ip_state_6 == NM_DEVICE_IP_STATE_DONE) {
|
2018-07-05 21:30:53 +01:00
|
|
|
gw = nm_ip6_config_best_default_route_get (priv->ip_config_6);
|
|
|
|
if (gw) {
|
|
|
|
nm_utils_inet6_ntop (&NMP_OBJECT_CAST_IP6_ROUTE (gw)->gateway, buf);
|
|
|
|
- ping_binary = nm_utils_find_helper ("ping6", "/usr/bin/ping6", NULL);
|
2019-04-23 04:12:53 +01:00
|
|
|
+ ping_binary = "@iputils@/bin/ping";
|
2018-07-05 21:30:53 +01:00
|
|
|
log_domain = LOGD_IP6;
|
|
|
|
}
|
|
|
|
}
|
2019-04-23 04:12:53 +01:00
|
|
|
diff --git a/src/nm-core-utils.c b/src/nm-core-utils.c
|
2019-12-23 03:02:09 +00:00
|
|
|
index fb92289f0..c91b27b09 100644
|
2018-07-05 21:30:53 +01:00
|
|
|
--- a/src/nm-core-utils.c
|
|
|
|
+++ b/src/nm-core-utils.c
|
2019-12-23 03:02:09 +00:00
|
|
|
@@ -336,7 +336,7 @@ nm_utils_modprobe (GError **error, gboolean suppress_error_logging, const char *
|
2018-07-05 21:30:53 +01:00
|
|
|
|
|
|
|
/* construct the argument list */
|
|
|
|
argv = g_ptr_array_sized_new (4);
|
|
|
|
- g_ptr_array_add (argv, "/sbin/modprobe");
|
|
|
|
+ g_ptr_array_add (argv, "@kmod@/bin/modprobe");
|
2019-03-07 15:44:02 +00:00
|
|
|
g_ptr_array_add (argv, "--use-blacklist");
|
2018-07-05 21:30:53 +01:00
|
|
|
g_ptr_array_add (argv, (char *) arg1);
|
|
|
|
|