From patchwork Wed Jun 19 16:42:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Titouan Christophe X-Patchwork-Id: 1118869 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) 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=railnova.eu Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=railnova-eu.20150623.gappssmtp.com header.i=@railnova-eu.20150623.gappssmtp.com header.b="QMoxW/C+"; 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 45TWGC5fBRz9s5c for ; Thu, 20 Jun 2019 02:52:35 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id BB23587AA5; Wed, 19 Jun 2019 16:52: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 BVaOjAqLnDRp; Wed, 19 Jun 2019 16:52:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 4E8AC87AFE; Wed, 19 Jun 2019 16:52:33 +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 8A1161BF355 for ; Wed, 19 Jun 2019 16:52:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 83F1986776 for ; Wed, 19 Jun 2019 16:52:32 +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 ryUI0+MtEgQ2 for ; Wed, 19 Jun 2019 16:52:31 +0000 (UTC) X-Greylist: delayed 00:08:11 by SQLgrey-1.7.6 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by whitealder.osuosl.org (Postfix) with ESMTPS id 8D84D86767 for ; Wed, 19 Jun 2019 16:52:31 +0000 (UTC) Received: by mail-wr1-f43.google.com with SMTP id p13so4135903wru.10 for ; Wed, 19 Jun 2019 09:52:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=railnova-eu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EWZvdgFOtjHGi8i0KM+P7r8rYm3eeU7ZJgslsdf1qIU=; b=QMoxW/C+DmAEqypaqJNuPaRWJ31wQgH7W8lbR/Ga1SeZ23R4SkxAgEzl+olxtAbwc1 pI/7FZhsjdxeLRPQcrmk8Y9CMrWieTR0+eD0AOs7AqE1fOhsuTQBcMWJriwOm+gjoerT hsbx5Fr8BR6WKy/bHoGOeyrIiaZd6FSUvEZFCVgcS0sTRRkjjelOYPcnzU/MYFXs0Em0 M1l77y+Z97u8hvu17KwwE53sCOr2ujDoVDTo7qs+De7dVX/vgnRt05ZmM1sqX+C9X6Cl w6q0mchqlhwdpMeEm4OcMU1Ol2uzhHBdE6VJV8jtSrmdbIcQBCmwZJhnrq65wPxiUYzg ehbw== 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=EWZvdgFOtjHGi8i0KM+P7r8rYm3eeU7ZJgslsdf1qIU=; b=SRCniZ+/pfOAHPjQUxJxPA4dgqbwQ0MBXDOeU+OyExAPOQhxLAM3zLka+wwfXzgz1D JoC12wpe0KdgvGbQSZrtgG4NUJRFzbkleew8gM5Dp/iq1LJf+P6CluO+pRbWFjBKUoJb HSqgwJ1QmZxM0TD3YM6V+ZwtwXzKMXtWqqlGCUWUEQ+I9lsPLvY+Tgh/oxFL4V701aYm nqccZc6RbDoIY1IIyjZR/bMHk6aet8pegDAft24JHBp+4zJjrnayPwOrFhQ0KvY62CVa bXphZSSdzGGTDF9eIXZdGj5Xsbfr7UOjuSW254dVZq/IlEPlCS03E9ca4yUYbWwpY/eH wjLg== X-Gm-Message-State: APjAAAXGh4vyY+nELnuPkWqPGTUpKfqhT6SDnOJBCd153ek4xXQpE6xO LI0cUmtDx1OqhTXcXwN/PLxh5OWu2Ugjxp0H X-Google-Smtp-Source: APXvYqzEYToAYwTJ2PutHot6Y5i4GfknnKfA/KOF/MUWV4DxJyp2HCcs8RXxKNwbh2TVhyifB46XCA== X-Received: by 2002:adf:cc85:: with SMTP id p5mr25936807wrj.47.1560962658938; Wed, 19 Jun 2019 09:44:18 -0700 (PDT) Received: from localhost.localdomain ([91.183.118.145]) by smtp.gmail.com with ESMTPSA id j7sm19949822wru.54.2019.06.19.09.44.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Jun 2019 09:44:18 -0700 (PDT) From: Titouan Christophe To: buildroot@buildroot.org Date: Wed, 19 Jun 2019 18:42:56 +0200 Message-Id: <20190619164257.183607-3-titouan.christophe@railnova.eu> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190619164257.183607-1-titouan.christophe@railnova.eu> References: <20190619164257.183607-1-titouan.christophe@railnova.eu> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/3] package/busybox: convert S10mdev to the canonical init script format 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 , Andy Shevchenko , Adam Duskett , Titouan Christophe Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Titouan Christophe --- package/busybox/S10mdev | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/package/busybox/S10mdev b/package/busybox/S10mdev index 7075b77016..efef4290ba 100644 --- a/package/busybox/S10mdev +++ b/package/busybox/S10mdev @@ -3,21 +3,24 @@ # Start mdev.... # -case "$1" in - start) + +start() { echo "Starting mdev..." echo /sbin/mdev >/proc/sys/kernel/hotplug /sbin/mdev -s # coldplug modules - find /sys/ -name modalias -print0 | xargs -0 sort -u | tr '\n' '\0' | \ - xargs -0 modprobe -abq - ;; - stop) - ;; - restart|reload) + find /sys/ -name modalias -print0 | \ + xargs -0 sort -u | \ + tr '\n' '\0' | \ + xargs -0 modprobe -abq +} + +case "$1" in + start) + "$1" ;; *) - echo "Usage: $0 {start|stop|restart}" + echo "Usage: $0 start" exit 1 esac