From patchwork Sat Dec 7 18:00:49 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: 1205502 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="AXf1o02q"; 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 47Vchd71qcz9sPh for ; Sun, 8 Dec 2019 05:01:21 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5F97387E57; Sat, 7 Dec 2019 18:01:20 +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 C1s0zAJkXDyH; Sat, 7 Dec 2019 18:01:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 55D6D87D22; Sat, 7 Dec 2019 18:01:16 +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 77AA51BF3BE for ; Sat, 7 Dec 2019 18:01:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 71A7A87009 for ; Sat, 7 Dec 2019 18:01:10 +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 jUf4Tc36jMID for ; Sat, 7 Dec 2019 18:01:05 +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 fraxinus.osuosl.org (Postfix) with ESMTPS id 888CD87027 for ; Sat, 7 Dec 2019 18:01:05 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id z3so11367465wru.3 for ; Sat, 07 Dec 2019 10:01:05 -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=+cXPgDogJlVUm53jEjD/m2umV3IJHKa+SjqOnh+UrD0=; b=AXf1o02qNl9WbNO8v12ECJ+x6cmpuAUqK8ZJonjD6REbdaWcEJKSx10uKnlYQjOTrt HljWbkrdshic+M+XZiTAJQ7uXnQCGTHw4iISqLyqbPyIJqHYbW2UIM0qXv4XNZNlPwPf O2m5dg3ftyrbXkcttUuJvmsGvjW2SSAs4YEi+/ZzlpKZ0HXh3G6Mte8zP8YcoYfjXEi+ hv1jZEpVTN+JTKM9Ex5vLNuDr4SvYTY9zT3lFwrRkCKxAxM0szkxiiBWc74pZurtqg+3 DSG7vAvnfCuuS72xf3DoOjrAQi1dMpYl1/OvXHRcxw8ff61V0DWc+UlYmi6zsgnDLSa7 pxXw== 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=+cXPgDogJlVUm53jEjD/m2umV3IJHKa+SjqOnh+UrD0=; b=ZOskECPhYjn951YStfaYWkVOYB0OfR3ZJahlYroZVQ/myLaYZLDH8v6vy0lTz7xTO9 pD92YSYKCZAf+hrlb/Gm+b2wCqrekPxuwbx9+PtH+kjPwpO5495kG2Q2TLlMT7vRpZxR 4h8U447thAgNHaWwsR+0n41xsen6LyAavtRDaprXZ9tg606KSZSagu0rTYYSlnv6xBvS CSyxJ2AErv6F+b/ELEj/R17S+Qzmc+0f+K7iT8S7tuM83UHC64lC+CNj7I7odiXiwz3I BV5ZpRSJlSg/0I7YB6H2J6cfwsx7WI9CFD4FhWgQsS5TJusy1S3Q60CLUstDC7dbDCFt 7Z2Q== X-Gm-Message-State: APjAAAV/CYgkveY9qkA1g1Z05exttzCzy4JnG1V9n33htGkmMRH3XSKK T3mnP/csMELNpw3sOH4y3ZKGhsQjzg== X-Google-Smtp-Source: APXvYqzaIbaz5IApkf4/l9YwkXh+Ddg14Plz5n1N+7BLpEOXRw1kTH225RDCN48V43YiOL0/Jf7e0w== X-Received: by 2002:adf:b645:: with SMTP id i5mr21691622wre.347.1575741663946; Sat, 07 Dec 2019 10:01:03 -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 z4sm7558964wme.17.2019.12.07.10.01.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Dec 2019 10:01:03 -0800 (PST) From: =?utf-8?b?SsOpcsOpbXkgUm9zZW4=?= To: buildroot@buildroot.org Date: Sat, 7 Dec 2019 19:00:49 +0100 Message-Id: <20191207180049.3245578-14-jeremy.rosen@smile.fr> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191207180049.3245578-1-jeremy.rosen@smile.fr> References: <20191207180049.3245578-1-jeremy.rosen@smile.fr> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3 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 47f07bf7a2..d06af231bf 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