From patchwork Fri Jul 27 14:03:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Liu X-Patchwork-Id: 173677 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 559BE2C0086 for ; Sat, 28 Jul 2012 00:04:15 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id A2524A0039; Fri, 27 Jul 2012 14:04:13 +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 28PXw5AzzuFb; Fri, 27 Jul 2012 14:04:12 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 87E76A01A3; Fri, 27 Jul 2012 14:04:12 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id DF5068F791 for ; Fri, 27 Jul 2012 14:04:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id D4BD732DB3 for ; Fri, 27 Jul 2012 14:04:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QKI7QLme496F for ; Fri, 27 Jul 2012 14:04:11 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-yx0-f174.google.com (mail-yx0-f174.google.com [209.85.213.174]) by silver.osuosl.org (Postfix) with ESMTPS id E979D214E8 for ; Fri, 27 Jul 2012 14:04:10 +0000 (UTC) Received: by yenl2 with SMTP id l2so3441677yen.33 for ; Fri, 27 Jul 2012 07:04:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:x-mailer; bh=/eSCXHlO3A02uS/itv3THRTgNeNlWT9EV57MjEXV5bY=; b=kXRRazXtkUPWF3jKvuM0TKp//PUlJh4m0CgXveIwZGiSOBw0mM9ceA7/GP3HykNHHx xeg4C1XQ82DA9MnRSdFuSkk8tn8acGDtg0H0H0sit5ZpJrcfm/YfN1E4iEINTsBcG7Ix 3ZffIjrx9njRU7I5Gsxh3RmGj6VEG7DZnaKel5j1tAVlNlrDLXNT97ZurSTmmHO5qZPx VcON2uMhP0lyAIHMxrs0Hx5KaDAwtLXT0Ryprdo2czAWsuFG7fVxhsqy+rgo6kCa6hBC 4wok0e9YR808ay6vdC0OEDO6erh6rsYm0pSsBuloJZRIWqXfAAZVJOjsQ6mHqZoG1TsZ f8pA== Received: by 10.66.88.230 with SMTP id bj6mr5810346pab.43.1343397849511; Fri, 27 Jul 2012 07:04:09 -0700 (PDT) Received: from net147.co.cc (60-242-179-244.static.tpgi.com.au. [60.242.179.244]) by mx.google.com with ESMTPS id wf7sm1975830pbc.34.2012.07.27.07.04.06 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 Jul 2012 07:04:08 -0700 (PDT) From: Jonathan Liu To: buildroot@uclibc.org Date: Sat, 28 Jul 2012 00:03:58 +1000 Message-Id: <1343397838-2265-1-git-send-email-net147@gmail.com> X-Mailer: git-send-email 1.7.11.2 Subject: [Buildroot] [PATCH] udev: process udev events on startup in init.d script X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 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-bounces@busybox.net udev rules are not processed for kernel events that occur before the udev daemon is started. Call udevadm trigger to replay these missed events. Signed-off-by: Jonathan Liu --- package/udev/S10udev | 1 + 1 file changed, 1 insertion(+) diff --git a/package/udev/S10udev b/package/udev/S10udev index 7bb4309..2c7b7e9 100755 --- a/package/udev/S10udev +++ b/package/udev/S10udev @@ -30,6 +30,7 @@ case "$1" in echo -n "Populating ${udev_root:-/dev} using udev: " echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug $UDEV_BIN -d || (echo "FAIL" && exit 1) + udevadm trigger echo "done" ;; stop)