From patchwork Sun Oct 25 00:59:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Beno=C3=AEt_Th=C3=A9baudeau?= X-Patchwork-Id: 535522 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 1850514132E for ; Sun, 25 Oct 2015 12:00:49 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=qXOGfEB/; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 5824A31F35; Sun, 25 Oct 2015 01:00:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ki83-jRXLf3Y; Sun, 25 Oct 2015 01:00:45 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 3FBBE3204F; Sun, 25 Oct 2015 01:00:15 +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 32CB11C0BE0 for ; Sun, 25 Oct 2015 00:59:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 2C9F08A09E for ; Sun, 25 Oct 2015 00:59:58 +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 cWPy4v24NWOS for ; Sun, 25 Oct 2015 00:59:57 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by whitealder.osuosl.org (Postfix) with ESMTPS id 885F387AD2 for ; Sun, 25 Oct 2015 00:59:57 +0000 (UTC) Received: by wicfv8 with SMTP id fv8so73574668wic.0 for ; Sat, 24 Oct 2015 17:59:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=RR9kXzO30ISM8h21iXO7R2XsQ/ffxYLcp6OgAUQ3yEc=; b=qXOGfEB/rZl8YmiwjSFuD13zB9EQOENq/+AQRLoen2Rr/LwCvFWFulftFf4yaSKpMF Dtheg6xA2PjASkfYM8prmHCeHWv7wNR2O/LWncVgInQRNZ3Y7BGWiEQNnPelu9yYXv+9 KQHgzUyIm+JVLQaR8kw9dz6rxb32ySaIYYjH5oNmEd8cpJZBA5+Hg9ysoh2j/FnQOuaO asV2fjrARtHKNVtITtdykL/L3axMeguJWq4PZtvs4MgOO/YBxzXrnmYxkvI3sMvjXPXS JH7j4Mo/ReGiwG7gfIBa0KEc9dfCcbazqgnGgzoBZnp2kc4Qu17+i/8t0i3iUCOnmYG5 izLQ== X-Received: by 10.180.36.193 with SMTP id s1mr12950500wij.46.1445734796233; Sat, 24 Oct 2015 17:59:56 -0700 (PDT) Received: from localhost.localdomain (vno44-1-88-172-188-148.fbx.proxad.net. [88.172.188.148]) by smtp.gmail.com with ESMTPSA id jd9sm8406757wic.0.2015.10.24.17.59.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 24 Oct 2015 17:59:55 -0700 (PDT) From: =?UTF-8?q?Beno=C3=AEt=20Th=C3=A9baudeau?= To: Date: Sun, 25 Oct 2015 02:59:36 +0200 Message-Id: <1445734779-7212-10-git-send-email-benoit.thebaudeau.dev@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1445734779-7212-1-git-send-email-benoit.thebaudeau.dev@gmail.com> References: <1445734779-7212-1-git-send-email-benoit.thebaudeau.dev@gmail.com> MIME-Version: 1.0 Cc: Thomas Petazzoni , =?UTF-8?q?Beno=C3=AEt=20Th=C3=A9baudeau?= Subject: [Buildroot] [PATCH v3 10/13] package/dhcp/S80dhcp-server: support IPv6 lease file 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: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Benoît Thébaudeau The IPv6 lease file has a different name. Signed-off-by: Benoît Thébaudeau --- Changes v2 -> v3: none. Changes v1 -> v2: - Rebase. --- package/dhcp/S80dhcp-server | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package/dhcp/S80dhcp-server b/package/dhcp/S80dhcp-server index 1c2ff74..b6f76ee 100755 --- a/package/dhcp/S80dhcp-server +++ b/package/dhcp/S80dhcp-server @@ -25,7 +25,10 @@ case "$1" in start) printf "Starting DHCP server: " test -d /var/lib/dhcp/ || mkdir -p /var/lib/dhcp/ - test -f /var/lib/dhcp/dhcpd.leases || touch /var/lib/dhcp/dhcpd.leases + for lease_file in /var/lib/dhcp/dhcpd.leases \ + /var/lib/dhcp/dhcpd6.leases; do + test -f "${lease_file}" || touch "${lease_file}" + done start-stop-daemon -S -q -x /usr/sbin/dhcpd -- -q $OPTIONS $INTERFACES [ $? = 0 ] && echo "OK" || echo "FAIL" ;;