Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180871
b: refs/heads/master
c: 88f66ea
h: refs/heads/master
i:
  180869: 5abc8ad
  180867: 91143de
  180863: c604f44
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Feb 2, 2010
1 parent 70212ae commit 2e88073
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 13d7e9385644d376a0816ad663ba3dfc45359f2f
refs/heads/master: 88f66ea98d7ae6a8b6a34e38b1b4fa51abc1c9ca
15 changes: 14 additions & 1 deletion trunk/scripts/kconfig/streamline_config.pl
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,20 @@ sub read_kconfig {
my %modules;

# see what modules are loaded on this system
open(LIN,"/sbin/lsmod|") || die "Cant lsmod";
my $lsmod;

foreach $dir ( ("/sbin", "/bin", "/usr/sbin", "/usr/bin") ) {
if ( -x "$dir/lsmod" ) {
$lsmod = "$dir/lsmod";
last;
}
}
if (!defined($lsmod)) {
# try just the path
$lsmod = "lsmod";
}

open(LIN,"$lsmod|") || die "Can not call lsmod with $lsmod";
while (<LIN>) {
next if (/^Module/); # Skip the first line.
if (/^(\S+)/) {
Expand Down

0 comments on commit 2e88073

Please sign in to comment.