kconfig: Look in both /bin and /sbin for lsmod in streamline_config.pl
authorSteven Rostedt <srostedt@redhat.com>
Wed, 6 Jan 2010 23:49:44 +0000 (18:49 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 2 Feb 2010 18:01:01 +0000 (13:01 -0500)
commit88f66ea98d7ae6a8b6a34e38b1b4fa51abc1c9ca
treef2b9edf54bb3d2eec25b4166111dcf98fde2ae3a
parent13d7e9385644d376a0816ad663ba3dfc45359f2f
kconfig: Look in both /bin and /sbin for lsmod in streamline_config.pl

Distributions now have lsmod in /bin instead of /sbin. But to handle
both cases, we look for it in /sbin /bin /usr/bin and /usr/sbin.
If lsmod is not found in any of those paths, it defaults to use
just lsmod and hopes that it lies in the path of the user.

Tested-by: Xavier Chantry <shiningxc@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
scripts/kconfig/streamline_config.pl