[{"id":1763089,"web_url":"http://patchwork.ozlabs.org/comment/1763089/","msgid":"<20170905090117.GA3713@scaer>","list_archive_url":null,"date":"2017-09-05T09:01:17","subject":"Re: [Buildroot] [PATCH] package/netplug: init script create needed\n\tlock directory","submitter":{"id":13903,"url":"http://patchwork.ozlabs.org/api/people/13903/","name":"Yann E. MORIN","email":"yann.morin.1998@free.fr"},"content":"Julien, All,\n\nOn 2017-09-05 10:39 +0200, Julien Corjon spake thusly:\n> Init script use /var/lock/subsys/netplugd but directory\n> /var/lock/subsys can be missing.\n> \n> Signed-off-by: Julien Corjon <corjon.j@ecagroup.com>\n> ---\n>  package/netplug/S29netplug | 3 +++\n>  1 file changed, 3 insertions(+)\n> \n> diff --git a/package/netplug/S29netplug b/package/netplug/S29netplug\n> index 88f933d556..fe63c1b79a 100755\n> --- a/package/netplug/S29netplug\n> +++ b/package/netplug/S29netplug\n> @@ -11,6 +11,9 @@\n>  \n>  # Copyright 2003 Key Research, Inc.\n>  \n> +# Create needed directories\n> +[ -d /var/lock/subsys ] || mkdir -p /var/lock/subsys\n\nmkdir -p will only create what is needed, so if the directory already exists,\nit will do nothing, and will not whine either. So, don't test, just mkdir.\n\nRegards,\nYann E. MORIN.\n\n>  # Source function library.\n>  if [ -f /etc/init.d/functions ]; then\n>  \t. /etc/init.d/functions\n> -- \n> 2.11.0\n> \n> _______________________________________________\n> buildroot mailing list\n> buildroot@busybox.net\n> http://lists.busybox.net/mailman/listinfo/buildroot","headers":{"Return-Path":"<buildroot-bounces@busybox.net>","X-Original-To":["incoming@patchwork.ozlabs.org","buildroot@lists.busybox.net"],"Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","buildroot@osuosl.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=busybox.net\n\t(client-ip=140.211.166.133; helo=hemlock.osuosl.org;\n\tenvelope-from=buildroot-bounces@busybox.net;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"ejTAqjdA\"; dkim-atps=neutral"],"Received":["from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xmggY1nWDz9s72\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue,  5 Sep 2017 19:01:29 +1000 (AEST)","from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 2B07B8734D;\n\tTue,  5 Sep 2017 09:01:26 +0000 (UTC)","from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id DoIm2zCarIFF; Tue,  5 Sep 2017 09:01:24 +0000 (UTC)","from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 93D27872F7;\n\tTue,  5 Sep 2017 09:01:24 +0000 (UTC)","from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 935A01C15F0\n\tfor <buildroot@lists.busybox.net>;\n\tTue,  5 Sep 2017 09:01:23 +0000 (UTC)","from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 8D57685FD7\n\tfor <buildroot@lists.busybox.net>;\n\tTue,  5 Sep 2017 09:01:23 +0000 (UTC)","from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id hPtQXt4L3WVL for <buildroot@lists.busybox.net>;\n\tTue,  5 Sep 2017 09:01:22 +0000 (UTC)","from mail-wm0-f66.google.com (mail-wm0-f66.google.com\n\t[74.125.82.66])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id 89EB285E64\n\tfor <buildroot@buildroot.org>; Tue,  5 Sep 2017 09:01:22 +0000 (UTC)","by mail-wm0-f66.google.com with SMTP id p17so2395424wmd.3\n\tfor <buildroot@buildroot.org>; Tue, 05 Sep 2017 02:01:22 -0700 (PDT)","from ymorin.is-a-geek.org\n\t(2a01cb088610730090c8233d1a6af754.ipv6.abo.wanadoo.fr.\n\t[2a01:cb08:8610:7300:90c8:233d:1a6a:f754])\n\tby smtp.gmail.com with ESMTPSA id\n\tw82sm115721wme.5.2017.09.05.02.01.18\n\t(version=TLS1 cipher=AES128-SHA bits=128/128);\n\tTue, 05 Sep 2017 02:01:19 -0700 (PDT)","by ymorin.is-a-geek.org (sSMTP sendmail emulation);\n\tTue, 05 Sep 2017 11:01:17 +0200"],"X-Virus-Scanned":["amavisd-new at osuosl.org","amavisd-new at osuosl.org"],"X-Greylist":"domain auto-whitelisted by SQLgrey-1.7.6","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:date:from:to:cc:subject:message-id:references:mime-version\n\t:content-disposition:in-reply-to:user-agent;\n\tbh=GLvJSIbbrR7nM+BZhsnqkcQZL72lOmxnLk33Dlv2C54=;\n\tb=ejTAqjdAsZPEzTO8U4jn1J8V66E8nuaZbVxsovz80bpoGALbeKz158GrlvKJXNI8Cr\n\t18Css0t8oVCk6AOfqj8Gm0Z4kM30jVp5x+MndSfLQ+oX5vEMvN5E4g5DQhaD19py+FLV\n\tSjUlRK8wyPptDxngOuJZIPB1EogdCgc2JPAa+y8QRieSaMmqIwncxDTRh0dQgMpWjau/\n\tl88BV94tDE3P8AFVblLYMjSf62XaVMbSjnq/eWNpEBoz4K4VYx5PtEBkMxh+B5xl4Omu\n\tSg6rEonELA872+4zb6uiViW3c1eWxoHIYMNB+i5W9h90WJBIOQ3D+5OOl0qGXZ1MZqAp\n\tvF3g==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:date:from:to:cc:subject:message-id\n\t:references:mime-version:content-disposition:in-reply-to:user-agent; \n\tbh=GLvJSIbbrR7nM+BZhsnqkcQZL72lOmxnLk33Dlv2C54=;\n\tb=MqxHAw6Y7f3ymK8ohyVczqFSXUxQbHUwdOZ3d9/RuZgJLSh85HVax/ugX475BSM1J6\n\t+iryl47+tR4QBFLTH482JrwKT0m8YDWYwih1RcnDMpXyjCovfoj0/+m9p+RgUzoByrpW\n\tPv9xnwUxU1M2VDyO64Zgi4tO+3jvkNnvnsR0Uty/Can2y75k76gm/YfIaZeB1sikAj0C\n\td1+/TS09iolKYfgGdPh+0I4fiFZzc9qqKdDtOBCMfnTkTIonhi2qqVQ/Mb9ZRNfZRnrB\n\tWb58Fu30giZz98UxN9RWyc6mpNwNyofP16E4qCv4p2OWVG6JTEGZQPjcIGGaXwhKUfQ4\n\tPgCA==","X-Gm-Message-State":"AHPjjUg1KC+hpEkMQLv7BIuXotL/w67PKyNPg8yVHni6uz6zs9VP3gYo\n\tbiqYvxlSihcA0OZS","X-Google-Smtp-Source":"ADKCNb4+dx57WhVdgZgQYM2MFqAH4wozV+enwlMJnodepsGeoI8pcsRcJbXxumuuTJWxZs31dClPAg==","X-Received":"by 10.28.5.71 with SMTP id 68mr1891933wmf.140.1504602080941;\n\tTue, 05 Sep 2017 02:01:20 -0700 (PDT)","Date":"Tue, 5 Sep 2017 11:01:17 +0200","From":"\"Yann E. MORIN\" <yann.morin.1998@free.fr>","To":"Julien Corjon <corjon.j@ecagroup.com>","Message-ID":"<20170905090117.GA3713@scaer>","References":"<20170905083917.8625-1-corjon.j@ecagroup.com>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20170905083917.8625-1-corjon.j@ecagroup.com>","User-Agent":"Mutt/1.5.22 (2013-10-16)","Cc":"ECA SINTERS software <software.eca-sinters@ecagroup.com>,\n\tbuildroot@buildroot.org","Subject":"Re: [Buildroot] [PATCH] package/netplug: init script create needed\n\tlock directory","X-BeenThere":"buildroot@busybox.net","X-Mailman-Version":"2.1.18-1","Precedence":"list","List-Id":"Discussion and development of buildroot <buildroot.busybox.net>","List-Unsubscribe":"<http://lists.busybox.net/mailman/options/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=unsubscribe>","List-Archive":"<http://lists.busybox.net/pipermail/buildroot/>","List-Post":"<mailto:buildroot@busybox.net>","List-Help":"<mailto:buildroot-request@busybox.net?subject=help>","List-Subscribe":"<http://lists.busybox.net/mailman/listinfo/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=subscribe>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Errors-To":"buildroot-bounces@busybox.net","Sender":"\"buildroot\" <buildroot-bounces@busybox.net>"}}]