2019-09-14 01:02:38 +02:00
|
|
|
diff --git a/data/84-nm-drivers.rules b/data/84-nm-drivers.rules
|
2022-03-08 14:55:50 +01:00
|
|
|
index 148acade5c..6395fbfbe5 100644
|
2018-12-22 00:58:48 +01:00
|
|
|
--- a/data/84-nm-drivers.rules
|
|
|
|
+++ b/data/84-nm-drivers.rules
|
2022-03-08 14:55:50 +01:00
|
|
|
@@ -7,6 +7,6 @@ ACTION!="add|change|move", GOTO="nm_drivers_end"
|
2018-12-22 00:58:48 +01: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 01:02:38 +02: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 04:02:09 +01: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-22 00:58:48 +01:00
|
|
|
|
|
|
|
LABEL="nm_drivers_end"
|
2019-09-14 01:02:38 +02:00
|
|
|
diff --git a/data/NetworkManager.service.in b/data/NetworkManager.service.in
|
2023-08-15 21:52:49 +02:00
|
|
|
index f09ae86ceb..b2ecb405ef 100644
|
2018-12-22 00:58:48 +01:00
|
|
|
--- a/data/NetworkManager.service.in
|
|
|
|
+++ b/data/NetworkManager.service.in
|
2023-08-15 21:52:49 +02:00
|
|
|
@@ -9,7 +9,7 @@ BindsTo=dbus.service
|
2018-12-22 00:58:48 +01:00
|
|
|
[Service]
|
|
|
|
Type=dbus
|
|
|
|
BusName=org.freedesktop.NetworkManager
|
2019-12-23 04:02:09 +01: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-22 00:58:48 +01:00
|
|
|
#ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
ExecStart=@sbindir@/NetworkManager --no-daemon
|
|
|
|
Restart=on-failure
|
2021-03-08 13:54:34 +01:00
|
|
|
diff --git a/src/core/devices/nm-device.c b/src/core/devices/nm-device.c
|
2024-02-14 22:35:38 +01:00
|
|
|
index a9e8c08508..875d6cc2cd 100644
|
2021-03-08 13:54:34 +01:00
|
|
|
--- a/src/core/devices/nm-device.c
|
|
|
|
+++ b/src/core/devices/nm-device.c
|
2024-02-14 22:35:38 +01:00
|
|
|
@@ -14645,14 +14645,14 @@ nm_device_start_ip_check(NMDevice *self)
|
2022-03-08 14:55:50 +01:00
|
|
|
gw = nm_l3_config_data_get_best_default_route(l3cd, AF_INET);
|
2021-03-08 13:54:34 +01:00
|
|
|
if (gw) {
|
2023-03-05 14:29:19 +01:00
|
|
|
nm_inet4_ntop(NMP_OBJECT_CAST_IP4_ROUTE(gw)->gateway, buf);
|
2021-03-08 13:54:34 +01:00
|
|
|
- ping_binary = nm_utils_find_helper("ping", "/usr/bin/ping", NULL);
|
|
|
|
+ ping_binary = "@iputils@/bin/ping";
|
|
|
|
log_domain = LOGD_IP4;
|
|
|
|
}
|
2022-03-08 14:55:50 +01:00
|
|
|
} else if (priv->ip_data_6.state == NM_DEVICE_IP_STATE_READY) {
|
|
|
|
gw = nm_l3_config_data_get_best_default_route(l3cd, AF_INET6);
|
2021-03-08 13:54:34 +01:00
|
|
|
if (gw) {
|
2023-03-05 14:29:19 +01:00
|
|
|
nm_inet6_ntop(&NMP_OBJECT_CAST_IP6_ROUTE(gw)->gateway, buf);
|
2021-03-08 13:54:34 +01:00
|
|
|
- ping_binary = nm_utils_find_helper("ping6", "/usr/bin/ping6", NULL);
|
|
|
|
+ ping_binary = "@iputils@/bin/ping";
|
|
|
|
log_domain = LOGD_IP6;
|
|
|
|
}
|
|
|
|
}
|
2021-06-18 22:35:27 +02:00
|
|
|
diff --git a/src/libnm-client-impl/meson.build b/src/libnm-client-impl/meson.build
|
2024-02-14 22:35:38 +01:00
|
|
|
index 79ac95598a..83f7ab1373 100644
|
2021-06-18 22:35:27 +02:00
|
|
|
--- a/src/libnm-client-impl/meson.build
|
|
|
|
+++ b/src/libnm-client-impl/meson.build
|
2024-02-14 22:35:38 +01:00
|
|
|
@@ -191,7 +191,6 @@ if enable_introspection
|
|
|
|
input: [gen_infos_cmd, libnm_gir[0]] + libnm_core_settings_sources,
|
|
|
|
output: 'nm-property-infos-' + name + '.xml',
|
2021-06-18 22:35:27 +02:00
|
|
|
command: [
|
|
|
|
- python.path(),
|
2024-02-14 22:35:38 +01:00
|
|
|
gen_infos_cmd,
|
|
|
|
name,
|
2021-06-18 22:35:27 +02:00
|
|
|
'@OUTPUT@',
|
2024-02-14 22:35:38 +01:00
|
|
|
@@ -207,7 +206,6 @@ if enable_introspection
|
|
|
|
'env',
|
|
|
|
'GI_TYPELIB_PATH=' + gi_typelib_path,
|
|
|
|
'LD_LIBRARY_PATH=' + ld_library_path,
|
|
|
|
- python.path(),
|
|
|
|
gen_gir_cmd,
|
|
|
|
'--lib-path', meson.current_build_dir(),
|
|
|
|
'--gir', libnm_gir[0],
|
2021-06-18 22:35:27 +02:00
|
|
|
diff --git a/src/libnmc-base/nm-vpn-helpers.c b/src/libnmc-base/nm-vpn-helpers.c
|
2023-08-15 21:52:49 +02:00
|
|
|
index cbe76f5f1c..8515f94994 100644
|
2021-06-18 22:35:27 +02:00
|
|
|
--- a/src/libnmc-base/nm-vpn-helpers.c
|
|
|
|
+++ b/src/libnmc-base/nm-vpn-helpers.c
|
2023-08-15 21:52:49 +02:00
|
|
|
@@ -284,15 +284,6 @@ nm_vpn_openconnect_authenticate_helper(NMSettingVpn *s_vpn, GPtrArray *secrets,
|
2022-03-08 14:55:50 +01:00
|
|
|
const char *const *iter;
|
|
|
|
const char *path;
|
2023-08-15 21:52:49 +02:00
|
|
|
const char *opt;
|
2021-06-18 22:35:27 +02:00
|
|
|
- const char *const DEFAULT_PATHS[] = {
|
2023-03-05 14:29:19 +01:00
|
|
|
- "/sbin/",
|
|
|
|
- "/usr/sbin/",
|
|
|
|
- "/usr/local/sbin/",
|
|
|
|
- "/bin/",
|
|
|
|
- "/usr/bin/",
|
|
|
|
- "/usr/local/bin/",
|
|
|
|
- NULL,
|
2021-06-18 22:35:27 +02:00
|
|
|
- };
|
2023-08-15 21:52:49 +02:00
|
|
|
const char *oc_argv[(12 + 2 * G_N_ELEMENTS(oc_property_args))];
|
|
|
|
const char *gw;
|
|
|
|
int port;
|
|
|
|
@@ -311,15 +302,7 @@ nm_vpn_openconnect_authenticate_helper(NMSettingVpn *s_vpn, GPtrArray *secrets,
|
|
|
|
|
|
|
|
port = extract_url_port(gw);
|
2021-06-18 22:35:27 +02: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;
|
|
|
|
+ path = "@openconnect@/bin/openconnect";
|
|
|
|
|
2023-08-15 21:52:49 +02:00
|
|
|
oc_argv[oc_argc++] = path;
|
|
|
|
oc_argv[oc_argc++] = "--authenticate";
|
2021-06-18 22:35:27 +02:00
|
|
|
diff --git a/src/libnmc-setting/meson.build b/src/libnmc-setting/meson.build
|
2024-02-14 22:35:38 +01:00
|
|
|
index 7fb460dc33..790a2b75fc 100644
|
2021-06-18 22:35:27 +02:00
|
|
|
--- a/src/libnmc-setting/meson.build
|
|
|
|
+++ b/src/libnmc-setting/meson.build
|
2024-02-14 22:35:38 +01:00
|
|
|
@@ -9,7 +9,6 @@ if enable_docs
|
|
|
|
input: [merge_cmd, nm_settings_docs_xml_gir['nmcli'], nm_property_infos_xml['nmcli']],
|
2021-06-18 22:35:27 +02:00
|
|
|
output: 'settings-docs-input.xml',
|
|
|
|
command: [
|
|
|
|
- python.path(),
|
2024-02-14 22:35:38 +01:00
|
|
|
merge_cmd,
|
2021-06-18 22:35:27 +02:00
|
|
|
'@OUTPUT@',
|
|
|
|
nm_property_infos_xml['nmcli'],
|
2024-02-14 22:35:38 +01:00
|
|
|
@@ -23,7 +22,6 @@ if enable_docs
|
|
|
|
input: [gen_cmd, settings_docs_input_xml],
|
2023-08-15 21:52:49 +02:00
|
|
|
output: 'settings-docs.h',
|
|
|
|
command: [
|
|
|
|
- python.path(),
|
2024-02-14 22:35:38 +01:00
|
|
|
gen_cmd,
|
2023-08-15 21:52:49 +02:00
|
|
|
'--output', '@OUTPUT@',
|
2024-02-14 22:35:38 +01:00
|
|
|
'--xml', settings_docs_input_xml
|
2021-06-18 22:35:27 +02:00
|
|
|
diff --git a/src/tests/client/meson.build b/src/tests/client/meson.build
|
2023-08-15 21:52:49 +02:00
|
|
|
index 8c36e40559..cfb6649a21 100644
|
2021-06-18 22:35:27 +02:00
|
|
|
--- a/src/tests/client/meson.build
|
|
|
|
+++ b/src/tests/client/meson.build
|
|
|
|
@@ -6,7 +6,6 @@ test(
|
|
|
|
args: [
|
|
|
|
build_root,
|
|
|
|
source_root,
|
|
|
|
- python.path(),
|
2023-03-05 14:29:19 +01:00
|
|
|
'--',
|
2023-08-15 21:52:49 +02:00
|
|
|
'TestNmcli',
|
2021-06-18 22:35:27 +02:00
|
|
|
],
|
2023-08-15 21:52:49 +02:00
|
|
|
@@ -23,7 +22,6 @@ if enable_nm_cloud_setup
|
|
|
|
args: [
|
|
|
|
build_root,
|
|
|
|
source_root,
|
|
|
|
- python.path(),
|
|
|
|
'--',
|
|
|
|
'TestNmCloudSetup',
|
|
|
|
],
|