From patchwork Sun Mar 29 23:49:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 1263575 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=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=doCXBTSc; 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 48rC4K71Mhz9sQt for ; Mon, 30 Mar 2020 10:49:37 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9269087E63; Sun, 29 Mar 2020 23:49:35 +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 dgPVqVdLtoiN; Sun, 29 Mar 2020 23:49:35 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id F3EAA87E6C; Sun, 29 Mar 2020 23:49:34 +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 D54DC1BF475 for ; Sun, 29 Mar 2020 23:49:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D1FF087E6F for ; Sun, 29 Mar 2020 23:49:33 +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 MnP7uUUuqNRo for ; Sun, 29 Mar 2020 23:49:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qt1-f180.google.com (mail-qt1-f180.google.com [209.85.160.180]) by hemlock.osuosl.org (Postfix) with ESMTPS id 4003487E63 for ; Sun, 29 Mar 2020 23:49:33 +0000 (UTC) Received: by mail-qt1-f180.google.com with SMTP id e14so13741951qts.2 for ; Sun, 29 Mar 2020 16:49:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=pwVTzA7obNrfeNVvHsNIyGBnsdMWsucd9p6brGgHjdY=; b=doCXBTScpAkO1xt7KYtPPuP3UxBHF/I4RSl7PzMrazu/KgOQ1T+wTDVW7JodV9fohy STKiaxQelDSdCiZkv7i24zoKKJkQJA9/ZRmho7leICpiPZBVabLkUUdFRVeGGWFWRiXy dNrvHjXaJpyqE+2XX+uLdgRPf+ckifix70SJqwgAjEibtYwt+vfzqMI1KaaAIZYObBjZ 9r1tg+kHTQXAMwdKqhF3YApo2/TbDR/XH8khB/H/52hzjql4GTtyIkqAxGpmgDo5rSO/ X/LS/dHU+rDaKL6t4Wrhr6acdqvcXfeNyQfJRn+modTz2el4V6gVrTtfSTQjIvxIOo06 Zb3A== 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; bh=pwVTzA7obNrfeNVvHsNIyGBnsdMWsucd9p6brGgHjdY=; b=THrImV/slST85r/KIoecT1NKTP+nHqENGGN+6Y66gxznO18LeE9oWQTDIYmseh/9WV iFEDvpOvToNMdIf9Ne3IVQ2hlQNu9dN9o9NG4Z0LjRj8BG4lJMJcOUZjYEpzBXM3J33Y 1Xt2hHxf/KTvVtyUcTiR65GCmNd6VGqkBszF0uhWzID7zE/GtcMmnQ+aB5Fy9WY/1PKI 8VUPiuDsMDdS5llcuLFs6eD9y3+SNIZFKBWXoOlvNnlpXHBW/M6u6CvfPZ1A3UuVU6zF ThGv4xEdzSBD5Kurdu9CNR2cA+yadSsBJfgkNY80z8SctmFzmPyhXNe5GanU9enQjdwl vvNw== X-Gm-Message-State: ANhLgQ3iOUMaTB5e7+HFTWPKmHWXHX70+4sDM0v2j3scgKzhz/o5jqyz aDHsTlUXKLlyNa/f3VSI8NjIXWED X-Google-Smtp-Source: ADFU+vurNdNFVX4igaasAN222g8C74pkRlTYBWzboxdIHOKpXPu16X/KaxLGagIk7/ZfskBv8zuZZg== X-Received: by 2002:ac8:2921:: with SMTP id y30mr9358352qty.161.1585525771996; Sun, 29 Mar 2020 16:49:31 -0700 (PDT) Received: from casantos.remote.csb.com (201.22.223.113.dynamic.adsl.gvt.net.br. [201.22.223.113]) by smtp.gmail.com with ESMTPSA id l7sm8843689qkb.47.2020.03.29.16.49.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Mar 2020 16:49:31 -0700 (PDT) From: unixmania@gmail.com To: buildroot@buildroot.org Date: Sun, 29 Mar 2020 20:49:21 -0300 Message-Id: <20200329234924.14505-1-unixmania@gmail.com> X-Mailer: git-send-email 2.18.2 Subject: [Buildroot] [PATCH 0/3] Fix and improve the S02sysctl init script 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: Carlos Santos , Adam Duskett MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Carlos Santos Both busybox and procps-ng provide a S02sysctl init script. Since the scripts are the same, except for some comments, make the busybox one a symlink to the procps-ng one. Also the scripts used the logger utility unconditionally but it may not exist. Declare two functions to perform the operation, run_logger and run_std, and use the appropriate one, depending on the existence of logger. Carlos Santos (3): pakage/busybox: use same S02sysctl script as procps-ng package/procps-ng: add busybox-related comments to S02sysctl pakage/procps-ng: use logger in S02sysctl only if it is available package/busybox/S02sysctl | 67 +------------------------------------ package/procps-ng/S02sysctl | 54 +++++++++++++++++++++++------- 2 files changed, 43 insertions(+), 78 deletions(-) mode change 100644 => 120000 package/busybox/S02sysctl