diff options
author | Tom Gundersen <teg@jklm.no> | 2013-10-26 18:54:16 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2013-10-27 22:23:58 +0100 |
commit | 43b3a5ef61859f06cdbaf26765cab8e1adac4296 (patch) | |
tree | b2792cf4777a8a8ec53ca8f95739fe5154cdc85b /src/udev/udev-builtin-net_link.c | |
parent | 65f568bbeb9b8c70200e44c19a797df3a0bfd485 (diff) |
udev: link-config: add rtnl support
This adds support for setting the mac address, name and mtu.
Example:
[Link]
MTU=1450
MACAddress=98:76:54:32:10:ab
Name=wireless0
Diffstat (limited to 'src/udev/udev-builtin-net_link.c')
-rw-r--r-- | src/udev/udev-builtin-net_link.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udev/udev-builtin-net_link.c b/src/udev/udev-builtin-net_link.c index d7cbe6a016..f4fb63ec51 100644 --- a/src/udev/udev-builtin-net_link.c +++ b/src/udev/udev-builtin-net_link.c @@ -37,7 +37,7 @@ static int builtin_net_link(struct udev_device *dev, int argc, char **argv, bool r = link_config_get(ctx, dev, &link); if (r < 0) { if (r == -ENOENT) { - log_info("No matching link configuration found"); + log_debug("No matching link configuration found"); return EXIT_SUCCESS; } else { log_error("Could not get link config"); @@ -47,7 +47,7 @@ static int builtin_net_link(struct udev_device *dev, int argc, char **argv, bool r = link_config_apply(ctx, link, dev); if (r < 0) { - log_error("Could not apply link config"); + log_error("Could not apply link config to %s", udev_device_get_sysname(dev)); return EXIT_FAILURE; } |