From patchwork Mon Oct 20 17:45:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Zacarias X-Patchwork-Id: 401210 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id C7E2114008E for ; Tue, 21 Oct 2014 04:47:21 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 11A1A915C8; Mon, 20 Oct 2014 17:47:21 +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 HNeW+YwdZ7tY; Mon, 20 Oct 2014 17:47:20 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 34EBD915DE; Mon, 20 Oct 2014 17:47:20 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 5B8D51C151C for ; Mon, 20 Oct 2014 17:47:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5734791604 for ; Mon, 20 Oct 2014 17:47:19 +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 MbgPZnE52Cqg for ; Mon, 20 Oct 2014 17:47:18 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.zacarias.com.ar (www.zacarias.com.ar [62.210.192.172]) by whitealder.osuosl.org (Postfix) with ESMTPS id 7AEB7915DE for ; Mon, 20 Oct 2014 17:47:17 +0000 (UTC) Received: from asgard (cpe-186-23-17-245.telecentro-reversos.com.ar [186.23.17.245] (may be forged)) (authenticated bits=0) by www.zacarias.com.ar (8.14.9/8.14.9) with ESMTP id s9KHl9Un002725 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 20 Oct 2014 17:47:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1413827235; bh=6YcUZVi47xO4h+CHZOGIQbap1ZP+mdXF1m34/DjuHhk=; h=From:To:Cc:Subject:Date; b=SgbpSFRE1vNXMNBVFBuBx0IUmO+5UyY4A7OE+uLHZdt+8y3PkBCZxQuwOTpQ2G05M oePufE4ZZN1MdVZcv9x6WjtzD0PA3rFyfpy2xpB8/oZDzNhF+adztWTRUSrqWGxtFE 16OzkILejgKq0jE3tAhCrlyF1wbmESMvRnHd8I7k= Received: by asgard (sSMTP sendmail emulation); Mon, 20 Oct 2014 14:45:20 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Mon, 20 Oct 2014 14:45:20 -0300 Message-Id: <1413827120-11083-1-git-send-email-gustavo@zacarias.com.ar> X-Mailer: git-send-email 2.0.4 X-Virus-Scanned: clamav-milter 0.98.4 at www X-Virus-Status: Clean Subject: [Buildroot] [PATCH] package/eudev: tweak initscript X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Make the udev initscript trigger in a coherent way, i.e. first set subsystems, then device and then let the whole thing settle. Otherwise for usb_modeswitch udev rules they never kick in since the storage aspect (device) gets claimed first and the switch ignored. Signed-off-by: Gustavo Zacarias Reviewed-by: "Yann E. MORIN" --- package/eudev/S10udev | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package/eudev/S10udev b/package/eudev/S10udev index 107dfd5..c3eafce 100755 --- a/package/eudev/S10udev +++ b/package/eudev/S10udev @@ -30,8 +30,9 @@ case "$1" in printf "Populating ${udev_root:-/dev} using udev: " printf '\000\000\000\000' > /proc/sys/kernel/hotplug $UDEV_BIN -d || (echo "FAIL" && exit 1) - udevadm trigger --action=add - udevadm settle + udevadm trigger --type=subsystems --action=add + udevadm trigger --type=devices --action=add + udevadm settle --timeout=10 echo "done" ;; stop)