From patchwork Mon Dec 16 10:30:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsOpbXkgUk9TRU4=?= X-Patchwork-Id: 1210228 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=smile.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=smile-fr.20150623.gappssmtp.com header.i=@smile-fr.20150623.gappssmtp.com header.b="u5TdP+B9"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47byHR1J66z9sRM for ; Mon, 16 Dec 2019 21:31:30 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0F9CC87590; Mon, 16 Dec 2019 10:31:26 +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 UXiOI8CXxnk3; Mon, 16 Dec 2019 10:31:25 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 3E4F28756D; Mon, 16 Dec 2019 10:31:25 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 7B94A1BF2B5 for ; Mon, 16 Dec 2019 10:31:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7624185660 for ; Mon, 16 Dec 2019 10:31:12 +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 omilTUaTfP98 for ; Mon, 16 Dec 2019 10:31:12 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by fraxinus.osuosl.org (Postfix) with ESMTPS id BCF32854DF for ; Mon, 16 Dec 2019 10:31:11 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id y11so6568171wrt.6 for ; Mon, 16 Dec 2019 02:31:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SrtXBZh+z3iD7Jdf6POmYqXTbfq6MsoLeo6TonmDRlg=; b=u5TdP+B98fd4JjPGeFyOJqBF/nH+7pBq7sHqaKLdMVSQ3klYHTp1nSYkClZrexy+5z Wyskvbyn3t3b1ril6lBCJQIF7l7iJGUlkojq/QtOXtyUwjlH/jfEOxs9/4YUp5HAppPy TplpA+nUHUNc7e6g4q2AV/Vz7e+fCqGgK/KYEnipTUPsFlBvDGi3lZId96p7OoT7/T9P TdRFSl9gWBhfT7syI5Q8k4/dNHsUvarcV+ABKWXLwIxeoETCsnxqTChghsxEWk6SskIM Y0UMBpCBm7+m4StChe9B6flH6ZkmA1RcLGMrqQtzxL/lrQlK2SvNpt5Gtg64/HqnpaiE psIA== 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:mime-version:content-transfer-encoding; bh=SrtXBZh+z3iD7Jdf6POmYqXTbfq6MsoLeo6TonmDRlg=; b=CEMvkTD+F+4FP/MZgQJmo6NcsTy6clwfRqSlu8u1bJdnbsG+pmj4AYx+dCinTngxz/ auglnVvGMiBcBZ91+vFhyAhVhjE9yl/0AXvVQsmRjhIoL2wVDJe+OoG2A628XkAxcG0Q GWejRgzowVrk/DSnM1TqJ6wONzu06Mr0srfmZm1yk0/fLKc7nZCj13lJHbnX/nAjvmq7 BqAlCXjpu8Ab1MZVvCnd+VJZC6Ebt36c7w/qi5h1kyjP36RIoV6ImR2Gw9LhxpobYaHX 8FzQL3XP8TNG89LMTGekPKMUMJvv1TqAgUNMqj1gmr5SBHhDVR2575PrDlKbrzcIezyI l5kQ== X-Gm-Message-State: APjAAAXH7XJTOmCGjS2tA51vEHGkpSjdWzXWTLwOra/j7/kBCAQzktfM 5C57qcULVVYBwOgQ6PU0wLSDs/MZ6g== X-Google-Smtp-Source: APXvYqwl1UxxglPwP1FC03K21OvDxj7rRSQxG5uVdcy/hFpoErrdjn5jn6ZDlQQ/Hg7ZB7AubYmUIQ== X-Received: by 2002:a05:6000:12c9:: with SMTP id l9mr30887988wrx.304.1576492270130; Mon, 16 Dec 2019 02:31:10 -0800 (PST) Received: from localhost.localdomain ([2a01:e0a:4f5:d4c0:c24e:c904:189d:5967]) by smtp.googlemail.com with ESMTPSA id h8sm22313643wrx.63.2019.12.16.02.31.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Dec 2019 02:31:09 -0800 (PST) From: =?utf-8?b?SsOpcsOpbXkgUm9zZW4=?= To: buildroot@buildroot.org Date: Mon, 16 Dec 2019 11:30:52 +0100 Message-Id: <20191216103052.35220-14-jeremy.rosen@smile.fr> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191216103052.35220-1-jeremy.rosen@smile.fr> References: <20191216103052.35220-1-jeremy.rosen@smile.fr> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v5 13/13] package/alsa-utils: add a WantedBy section to the systemd unit file X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?b?SsOpcsOpbXkgUm9zZW4=?= Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This allows the user to enable/disable manually the unit. It is enabled by default Signed-off-by: Jérémy Rosen --- package/alsa-utils/alsa-utils.mk | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/package/alsa-utils/alsa-utils.mk b/package/alsa-utils/alsa-utils.mk index 52022e32ab..84f6db3784 100644 --- a/package/alsa-utils/alsa-utils.mk +++ b/package/alsa-utils/alsa-utils.mk @@ -90,11 +90,10 @@ define ALSA_UTILS_INSTALL_INIT_SYSTEMD $(TARGET_DIR)/usr/lib/systemd/system/alsa-restore.service $(INSTALL) -D -m 0644 $(@D)/alsactl/alsa-state.service \ $(TARGET_DIR)/usr/lib/systemd/system/alsa-state.service - mkdir -p $(TARGET_DIR)/etc/systemd/system/sound.target.wants - ln -sf ../../../../lib/systemd/system/alsa-restore.service \ - $(TARGET_DIR)/etc/systemd/system/sound.target.wants/alsa-restore.service - ln -sf ../../../../lib/systemd/system/alsa-state.service \ - $(TARGET_DIR)/etc/systemd/system/sound.target.wants/alsa-state.service + mkdir $(TARGET_DIR)/usr/lib/systemd/system/alsa-restore.service.d;\ + printf '[Install]\nWantedBy=multi-user.target\n' > $(TARGET_DIR)/usr/lib/systemd/system/alsa-restore.service.d/buildroot-enable.conf;\ + mkdir $(TARGET_DIR)/usr/lib/systemd/system/alsa-state.service.d;\ + printf '[Install]\nWantedBy=multi-user.target\n' > $(TARGET_DIR)/usr/lib/systemd/system/alsa-state.service.d/buildroot-enable.conf; endef endif