mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 02:30:08 +01:00
ifnet: remove system prefix
As all connections are system connection so the prefix is meaningless. Drop it now.
This commit is contained in:
parent
e3a1b6e065
commit
e7380561d5
2 changed files with 2 additions and 11 deletions
|
|
@ -30,6 +30,5 @@ src/nm-device-vlan.c
|
|||
src/nm-manager.c
|
||||
src/nm-netlink-monitor.c
|
||||
src/settings/plugins/ifcfg-rh/reader.c
|
||||
src/settings/plugins/ifnet/connection_parser.c
|
||||
src/settings/nm-settings-utils.c
|
||||
|
||||
|
|
|
|||
|
|
@ -45,12 +45,6 @@
|
|||
#include "connection_parser.h"
|
||||
#include "nm-ifnet-connection.h"
|
||||
|
||||
static const char *
|
||||
get_prefix (void)
|
||||
{
|
||||
return _("System");
|
||||
}
|
||||
|
||||
static void
|
||||
update_connection_id (NMConnection *connection, const char *conn_name)
|
||||
{
|
||||
|
|
@ -62,11 +56,9 @@ update_connection_id (NMConnection *connection, const char *conn_name)
|
|||
|
||||
name_len = strlen (conn_name);
|
||||
if ((name_len > 2) && (g_str_has_prefix (conn_name, "0x"))) {
|
||||
gchar * conn_name_printable = utils_hexstr2bin (conn_name + 2, name_len - 2);
|
||||
idstr = g_strdup_printf ("%s (%s)", get_prefix (), conn_name_printable);
|
||||
g_free (conn_name_printable);
|
||||
idstr = utils_hexstr2bin (conn_name + 2, name_len - 2);
|
||||
} else
|
||||
idstr = g_strdup_printf ("%s (%s)", get_prefix (), conn_name);
|
||||
idstr = g_strdup_printf ("%s", conn_name);
|
||||
uuid_base = idstr;
|
||||
uuid = nm_utils_uuid_generate_from_string (uuid_base);
|
||||
setting = nm_connection_get_setting_connection (connection);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue