From patchwork Tue Oct 20 22:43:28 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: 533544 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 7D6D014132F for ; Wed, 21 Oct 2015 09:43: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=bnSALchj; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7D76986E5D; Tue, 20 Oct 2015 22:43:48 +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 hp3X3EvGEB5C; Tue, 20 Oct 2015 22:43:47 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id A5EF286EB4; Tue, 20 Oct 2015 22:43:47 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 147061C053A for ; Tue, 20 Oct 2015 22:43:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 0F54A87732 for ; Tue, 20 Oct 2015 22:43:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yKrz8Ydp3UGd for ; Tue, 20 Oct 2015 22:43:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by hemlock.osuosl.org (Postfix) with ESMTPS id 61A0988FE0 for ; Tue, 20 Oct 2015 22:43:45 +0000 (UTC) Received: by wicll6 with SMTP id ll6so49617484wic.1 for ; Tue, 20 Oct 2015 15:43:44 -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:mime-version:content-type :content-transfer-encoding; bh=8Fum8pLKzOBiJK8DArhcfCz/8EAHu84rwjbD5rIgpzY=; b=bnSALchj5DKH05GCtHnDmYPZPKUhlKSfa1ken61QJr+q65xNQZzZllJUwuXb7/Xt68 pfkVDeYi4HBnEIOOR8UHF7vLna0Js2RNj6W3FgOtE6hndoNWG9C3tHL3kbM9ei9wvHG+ iOlDcb6F/xEA5eT5G+3CqbuS+Xr45TWDZsqmgRjrWGHgcW9s5PxB5SrjOfNQiXu3l4a3 ZOEEzkDv8rwh4cPYGqCFWVKm+RvR/6od6Vz2nb4tTq71UBwvBDV/7eTujlvpDuwtwkcF gSP+69fklTGkmnx8t3FP71EzaGZDyCyGOqgaoeWmy29CzaQwfqXfG24yel2iT/0vOXp0 ENWw== X-Received: by 10.194.112.234 with SMTP id it10mr6888620wjb.52.1445381024068; Tue, 20 Oct 2015 15:43:44 -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 wx10sm6417432wjb.40.2015.10.20.15.43.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Oct 2015 15:43:43 -0700 (PDT) From: =?UTF-8?q?Beno=C3=AEt=20Th=C3=A9baudeau?= To: Date: Wed, 21 Oct 2015 00:43:28 +0200 Message-Id: <1445381008-5165-1-git-send-email-benoit.thebaudeau.dev@gmail.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] package/rng-tools: systemd: support extra options 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" Add a DAEMON_ARGS configuration variable in order to make it possible to pass custom extra options to rngd. This environment variable must defined in /etc/default/rngd if needed, like with the SysV init script. This file does not have to be present if not needed. Signed-off-by: Benoît Thébaudeau --- package/rng-tools/rngd.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/rng-tools/rngd.service b/package/rng-tools/rngd.service index 3bdc4c1..c0bcffe 100644 --- a/package/rng-tools/rngd.service +++ b/package/rng-tools/rngd.service @@ -2,8 +2,9 @@ Description=Hardware RNG Entropy Gatherer Daemon [Service] -ExecStart=/usr/sbin/rngd -f +ExecStart=/usr/sbin/rngd -f $DAEMON_ARGS SuccessExitStatus=66 +EnvironmentFile=-/etc/default/rngd [Install] WantedBy=multi-user.target