summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-04-28 00:16:46 +0200
committerTom Gundersen <teg@jklm.no>2014-04-28 00:16:46 +0200
commit9b86b3930a47cafd39f342ed141014068a3093c2 (patch)
tree7624aa31907259e149f06f9ae33babe912be83db /src
parent1f0e0484742e5763e80b4f2c27667ecfea3d9aee (diff)
networkd: link - don't fail a link if RF kill is active
Diffstat (limited to 'src')
-rw-r--r--src/network/networkd-link.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index a6ae3c1b93..d3b2b14b21 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -1232,12 +1232,13 @@ static int link_up_handler(sd_rtnl *rtnl, sd_rtnl_message *m, void *userdata) {
r = sd_rtnl_message_get_errno(m);
if (r < 0) {
+ /* we warn but don't fail the link, as it may
+ be brought up later */
log_struct_link(LOG_WARNING, link,
"MESSAGE=%s: could not bring up interface: %s",
link->ifname, strerror(-r),
"ERRNO=%d", -r,
NULL);
- link_enter_failed(link);
}
return 1;