From patchwork Mon Feb 2 15:11:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Dedecker X-Patchwork-Id: 435553 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id E217B1402A7 for ; Tue, 3 Feb 2015 02:12:20 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id C2A9028BFB5; Mon, 2 Feb 2015 16:09:22 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id D385C28BFB5 for ; Mon, 2 Feb 2015 16:09:14 +0100 (CET) X-policyd-weight: using cached result; rate: -8.5 Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Mon, 2 Feb 2015 16:09:12 +0100 (CET) Received: by mail-wg0-f46.google.com with SMTP id l2so39322150wgh.5 for ; Mon, 02 Feb 2015 07:11:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=jpWnBqax4rXvwxztv4nbuFDkLdDaapki1fuiH2+Mryc=; b=GiNWOuW/kEOsGNllp+9YBj51a+EVnHI+6xUm95bR0yacezUQEyYHTtxLBiH3Yp4Yj8 Hnaq6XlKUAgoHoqP9yIW31tiL7reCpfOaZMINwY5OQQKXZ2b5H+ZYvTA+Dz2aQHg5XrV 5y6yel6PuNA+6fCvjNWXZQL9gimeMMS6ECT0fff1zJpkHjRxNm4j9t/WvdyS3+w/pyf3 Won40NYFL8AeX3N40E6CDEsZrVKD9TYLiFsBKIgkLognrxr9BWWsqD93ido+VHoQ+/mD DZSpuQmlrvdlZ9hWNW+40yZIOWI04jvfZBJTJheJ3An2EB/qWvVeMAUHQyI0sM8muD2Y m+JA== X-Received: by 10.180.100.104 with SMTP id ex8mr24488779wib.57.1422889899211; Mon, 02 Feb 2015 07:11:39 -0800 (PST) Received: from cplx43.eu.thmulti.com ([141.11.62.7]) by mx.google.com with ESMTPSA id bv16sm3691382wib.0.2015.02.02.07.11.37 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Feb 2015 07:11:38 -0800 (PST) From: Hans Dedecker To: openwrt-devel@lists.openwrt.org Date: Mon, 2 Feb 2015 16:11:22 +0100 Message-Id: <1422889884-3096-1-git-send-email-dedeckeh@gmail.com> X-Mailer: git-send-email 1.9.1 Cc: Hans Dedecker , cyrus@openwrt.org Subject: [OpenWrt-Devel] [PATCH 1/3] netifd: set current_config for simple devices when parsing device config X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" If currrent_config is not set when the simple device config is applied the device will be deleted in device_reset_old Signed-off-by: Hans Dedecker --- config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/config.c b/config.c index 4e91e18..22dd835 100644 --- a/config.c +++ b/config.c @@ -218,6 +218,7 @@ config_init_devices(void) if (!dev) continue; + dev->current_config = true; device_apply_config(dev, dev->type, b.head); } dev->default_config = false;