From patchwork Tue Sep 5 09:54:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Corjon X-Patchwork-Id: 810062 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xmhsg6Vdtz9sNc for ; Tue, 5 Sep 2017 19:55:19 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id B516785997; Tue, 5 Sep 2017 09:55:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uLD4jBVhEesj; Tue, 5 Sep 2017 09:55:14 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 43DB284CAB; Tue, 5 Sep 2017 09:55:14 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id F2DF31C4114 for ; Tue, 5 Sep 2017 09:55:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E72A0845FF for ; Tue, 5 Sep 2017 09:55:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AOfcvEQ9aI-V for ; Tue, 5 Sep 2017 09:55:11 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by whitealder.osuosl.org (Postfix) with ESMTPS id 9E76F83B82 for ; Tue, 5 Sep 2017 09:55:10 +0000 (UTC) Received: by mail-wr0-f195.google.com with SMTP id p14so1184501wrg.5 for ; Tue, 05 Sep 2017 02:55:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=8lHpv06JhSp6mO/ZVAMuqjc436IAGb29/Cq4OBRVFro=; b=myGO+/aOKCHYAV6Z+TTYGTxe5dc5+KQ9mJTDEMgwzZjiORhg0zGvgV8Poz7Qsf4+np nzQgKGV7oLC4E45Kspo6ZafCuqYPN2hBn+YN3MdBP55ZW0LlT5zpkqEIoIiJGHIncwuA EULF4OYi4UngUulQ2wXj+PRr0KqrKIhqG06pdwOVkTw/g60Vt9vh1A3XjY3VYFZcKSB8 a8MnorJj1AdZl+Eguvr5KrbqnVgE213CwXnXCo0OL/QtotMc504Oj0njwdWCW+j6pbhi 9zs5MPVTC5SFXk5S9smRx3d0/0ZuWgQBM7DOk5/sWrgi32g9LKKUC1TB1hVMAnaVlQ7n yS+w== X-Gm-Message-State: AHPjjUhv8EvH3w+qcj8pyb661IZGFSP6NIagzE/kXPndsS+5cNbBTehp 2M1jIZposNssTx4U X-Google-Smtp-Source: ADKCNb7Wgtp2VstiQpZ2vGCjey1UdSkhUpH9C+9w09QQKKaVb4LDgji6+DknqHcVC3qn0W0BcUW3Qg== X-Received: by 10.223.175.217 with SMTP id y25mr1871203wrd.255.1504605308750; Tue, 05 Sep 2017 02:55:08 -0700 (PDT) Received: from mic341-linux.sinters-int.fr ([195.200.174.78]) by smtp.gmail.com with ESMTPSA id 4sm160635wrl.60.2017.09.05.02.55.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Sep 2017 02:55:07 -0700 (PDT) From: Julien Corjon To: buildroot@buildroot.org Date: Tue, 5 Sep 2017 11:54:56 +0200 Message-Id: <20170905095456.15776-1-corjon.j@ecagroup.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170905083917.8625-1-corjon.j@ecagroup.com> References: <20170905083917.8625-1-corjon.j@ecagroup.com> Cc: ECA SINTERS software Subject: [Buildroot] [PATCH v2] package/netplug: init script create needed lock directory X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Init script use /var/lock/subsys/netplugd but directory /var/lock/subsys can be missing. Signed-off-by: Julien Corjon --- v2: - dont test already existing directory package/netplug/S29netplug | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/netplug/S29netplug b/package/netplug/S29netplug index 88f933d556..d3df9ddff5 100755 --- a/package/netplug/S29netplug +++ b/package/netplug/S29netplug @@ -11,6 +11,9 @@ # Copyright 2003 Key Research, Inc. +# Create needed directories +mkdir -p /var/lock/subsys + # Source function library. if [ -f /etc/init.d/functions ]; then . /etc/init.d/functions