From patchwork Thu Dec 12 07:54:00 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: 1208195 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.133; helo=hemlock.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="waohB8by"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47YR045ndBz9sNH for ; Thu, 12 Dec 2019 18:54:28 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 510AF886B1; Thu, 12 Dec 2019 07:54:27 +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 zxraw+3qDsQp; Thu, 12 Dec 2019 07:54:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id A354288702; Thu, 12 Dec 2019 07:54:26 +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 67B451BF293 for ; Thu, 12 Dec 2019 07:54:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 64E1787F59 for ; Thu, 12 Dec 2019 07:54:15 +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 wJjKQjfJPwah for ; Thu, 12 Dec 2019 07:54:15 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by whitealder.osuosl.org (Postfix) with ESMTPS id ACC6E87EB8 for ; Thu, 12 Dec 2019 07:54:14 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id z7so1554523wrl.13 for ; Wed, 11 Dec 2019 23:54:14 -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=waohB8byi3fNnvYMM3K0DedQJus1/VOoUiNkQbt/6qahNxBo01Vh8/F19VEukBZI7v xTb5IbnGlb/zbpEhRz2ciI6xOSSQuC9J7WkAhoseoNoWghBWx9lxP8PjLP2bYPOwyYDQ IdA0v2xpQ1iJD2KNef2mQsQq3qUmezanSZ1yVACmnOl95pmpToEP7x0xn/EPayyHiWTf mma08hSCC2OvKYdfObYk4tO6iRWQVYM6yKlBCFwjFXBdoxc7I6lSh6w5V5q13brB05QP P6Lvj8LmxfF7nT6QMwy2zt0AZw7Ai3vHOX26RGcnf4/jjB6rrKtiLssarzBmoBgdBLEz pKyA== 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=tfjPdIGIN6oaryY8oIgRKO1feqnQjE5sxAboys8e5HHRzLobQJ9la+VZqiRu+wgqL+ Lhbf6llzFkQcLcWBQjyAHs4DLf8Jhic/EXIEfXN6ZaydsaFqun26mRj9eg0yd2tBb/cB dSlypx54XoS/2bG5W7GFNUv8nDbugMChD80X9yle02ZfeGvkAYv6mLEEE6oUQwo5CrKw HfFbUyaelnbVHiZe4evovngQ03dbPq6ov3J3knN7uY4nqlFhr2Y0d0Rodm2Na5HQum29 Hk/Z7v69VAhH+7q5YDQm2PbikGiwws+XyVtVylI5piM+jKTIEwgXnEGsEAUNJkkhQJyA acMg== X-Gm-Message-State: APjAAAWnKpgzgCOyyu8H77V5GbqGxkKE4laLndGfkcZep9GHS4viafO4 MEIenjG9ERSP5yT4Odue0vOMxYKXLg== X-Google-Smtp-Source: APXvYqxAJFDEDZqnWB0cXHd+DBkU7NK84PpEVqKn1SSZKHpEUrWOfUHJMW/4YOLwIB8rli29dZnNnQ== X-Received: by 2002:adf:ef03:: with SMTP id e3mr4808070wro.216.1576137252978; Wed, 11 Dec 2019 23:54:12 -0800 (PST) Received: from localhost.localdomain (2a02-8428-0351-c201-4ead-12d2-d337-cdfb.rev.sfr.net. [2a02:8428:351:c201:4ead:12d2:d337:cdfb]) by smtp.googlemail.com with ESMTPSA id y20sm4909753wmi.25.2019.12.11.23.54.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2019 23:54:12 -0800 (PST) From: =?utf-8?b?SsOpcsOpbXkgUm9zZW4=?= To: buildroot@buildroot.org Date: Thu, 12 Dec 2019 08:54:00 +0100 Message-Id: <20191212075400.1499536-14-jeremy.rosen@smile.fr> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191212075400.1499536-1-jeremy.rosen@smile.fr> References: <20191212075400.1499536-1-jeremy.rosen@smile.fr> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v4 13/13] package/alsa-utils: add a WantedBy section to the unit 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