mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 18:20:07 +01:00
Merge remote branch 'origin/master' into ip6only
This commit is contained in:
commit
1d882c8ade
5 changed files with 21 additions and 5 deletions
|
|
@ -164,6 +164,14 @@ if test x"$with_distro" = xpardus; then
|
|||
AC_DEFINE(TARGET_PARDUS, 1, [Define if you have Pardus])
|
||||
fi
|
||||
|
||||
dnl
|
||||
dnl Distribution version string
|
||||
dnl
|
||||
AC_ARG_WITH(dist-version, AS_HELP_STRING([--with-dist-version=<NM-distribution-version>], [Define the NM's distribution version string]), ac_distver=$withval, ac_distver="")
|
||||
if ! test x"$ac_distver" = x""; then
|
||||
AC_DEFINE_UNQUOTED(NM_DIST_VERSION, "$ac_distver", [Define the distribution version string])
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING([Linux Wireless Extensions >= 18])
|
||||
AC_TRY_COMPILE([#ifndef __user
|
||||
#define __user
|
||||
|
|
|
|||
|
|
@ -53,6 +53,10 @@
|
|||
#include "nm-vpn-manager.h"
|
||||
#include "nm-logging.h"
|
||||
|
||||
#if !defined(NM_DIST_VERSION)
|
||||
# define NM_DIST_VERSION VERSION
|
||||
#endif
|
||||
|
||||
#define NM_DEFAULT_PID_FILE LOCALSTATEDIR"/run/NetworkManager.pid"
|
||||
#define NM_DEFAULT_SYSTEM_CONF_FILE SYSCONFDIR"/NetworkManager/NetworkManager.conf"
|
||||
#define NM_OLD_SYSTEM_CONF_FILE SYSCONFDIR"/NetworkManager/nm-system-settings.conf"
|
||||
|
|
@ -616,7 +620,7 @@ main (int argc, char *argv[])
|
|||
|
||||
nm_logging_start (become_daemon);
|
||||
|
||||
nm_log_info (LOGD_CORE, "starting...");
|
||||
nm_log_info (LOGD_CORE, "NetworkManager (version " NM_DIST_VERSION ") is starting...");
|
||||
success = FALSE;
|
||||
|
||||
main_loop = g_main_loop_new (NULL, FALSE);
|
||||
|
|
|
|||
|
|
@ -2091,7 +2091,9 @@ system_get_secrets_idle_cb (gpointer user_data)
|
|||
connection = nm_settings_interface_get_connection_by_path (NM_SETTINGS_INTERFACE (priv->sys_settings),
|
||||
info->connection_path);
|
||||
if (!connection) {
|
||||
error = g_error_new_literal (0, 0, "unknown connection (not exported by system settings)");
|
||||
error = g_error_new_literal (NM_MANAGER_ERROR,
|
||||
NM_MANAGER_ERROR_UNKNOWN_CONNECTION,
|
||||
"unknown connection (not exported by system settings)");
|
||||
nm_secrets_provider_interface_get_secrets_result (info->provider,
|
||||
info->setting_name,
|
||||
info->caller,
|
||||
|
|
|
|||
|
|
@ -1469,7 +1469,7 @@ channel_to_freq (guint32 channel, const char *band)
|
|||
} else if (!strcmp (band, "bg")) {
|
||||
while (bg_table[i].chan && (bg_table[i].chan != channel))
|
||||
i++;
|
||||
return a_table[i].freq;
|
||||
return bg_table[i].freq;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -357,8 +357,6 @@ add_plugin (NMSysconfigSettings *self, NMSystemConfigInterface *plugin)
|
|||
|
||||
g_signal_connect (plugin, NM_SYSTEM_CONFIG_INTERFACE_CONNECTION_ADDED,
|
||||
G_CALLBACK (plugin_connection_added), self);
|
||||
g_signal_connect (plugin, NM_SYSTEM_CONFIG_INTERFACE_UNMANAGED_SPECS_CHANGED,
|
||||
G_CALLBACK (unmanaged_specs_changed), self);
|
||||
g_signal_connect (plugin, "notify::hostname", G_CALLBACK (hostname_changed), self);
|
||||
|
||||
nm_system_config_interface_init (plugin, NULL);
|
||||
|
|
@ -368,6 +366,9 @@ add_plugin (NMSysconfigSettings *self, NMSystemConfigInterface *plugin)
|
|||
NM_SYSTEM_CONFIG_INTERFACE_INFO, &pinfo,
|
||||
NULL);
|
||||
|
||||
g_signal_connect (plugin, NM_SYSTEM_CONFIG_INTERFACE_UNMANAGED_SPECS_CHANGED,
|
||||
G_CALLBACK (unmanaged_specs_changed), self);
|
||||
|
||||
nm_log_info (LOGD_SYS_SET, "Loaded plugin %s: %s", pname, pinfo);
|
||||
g_free (pname);
|
||||
g_free (pinfo);
|
||||
|
|
@ -1328,6 +1329,7 @@ nm_sysconfig_settings_new (const char *config_file,
|
|||
g_object_unref (self);
|
||||
return NULL;
|
||||
}
|
||||
unmanaged_specs_changed (NULL, self);
|
||||
}
|
||||
|
||||
return self;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue