From patchwork Tue Jan 19 16:29:45 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Kacur X-Patchwork-Id: 73898 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0JGVAjS001925 for ; Tue, 19 Jan 2010 16:31:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753142Ab0ASQbJ (ORCPT ); Tue, 19 Jan 2010 11:31:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752167Ab0ASQbJ (ORCPT ); Tue, 19 Jan 2010 11:31:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:9594 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751766Ab0ASQbG (ORCPT ); Tue, 19 Jan 2010 11:31:06 -0500 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0JGTqx0009773 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 19 Jan 2010 11:29:53 -0500 Received: from vpn2-8-71.ams2.redhat.com (vpn2-8-71.ams2.redhat.com [10.36.8.71]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0JGTk1J014626 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 19 Jan 2010 11:29:49 -0500 Date: Tue, 19 Jan 2010 17:29:45 +0100 (CET) From: John Kacur X-X-Sender: jkacur@localhost.localdomain To: Mike Frysinger cc: Steven Rostedt , =?ISO-8859-15?Q?Am=E9rico_Wang?= , Andrew Morton , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: Re: [PATCH] kconfig: dont hardcode path to lsmod In-Reply-To: <520f0cf11001190822t6d3221bco20739d586608bfde@mail.gmail.com> Message-ID: References: <1263883920-17289-1-git-send-email-vapier@gentoo.org> <20100119142545.GB3473@hack> <520f0cf11001190822t6d3221bco20739d586608bfde@mail.gmail.com> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl index 0d80082..1803d2e 100644 --- a/scripts/kconfig/streamline_config.pl +++ b/scripts/kconfig/streamline_config.pl @@ -238,7 +238,8 @@ foreach my $makefile (@makefiles) { my %modules; # see what modules are loaded on this system -open(LIN,"/sbin/lsmod|") || die "Cant lsmod"; +# If lsmod isn't in the sbin dir, check if it is in the path +open(LIN,"/sbin/lsmod|") || open(LIN,"lsmod|") || die "Cant lsmod"; while () { next if (/^Module/); # Skip the first line. if (/^(\S+)/) {