networkd: link - don't fail a link if RF kill is active

This commit is contained in:
Tom Gundersen 2014-04-28 00:16:46 +02:00
parent 1f0e048474
commit 9b86b3930a
1 changed files with 2 additions and 1 deletions

View File

@ -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;