Don't hardcode path to lsmod.

master
Ville Skyttä 2009-09-06 18:51:00 +03:00
parent 47fb2d8f0e
commit b5505959af
2 changed files with 2 additions and 1 deletions

View File

@ -105,6 +105,7 @@ bash-completion (1.x)
and zmore filename completions.
* Add xz and compress support and more tarball filename extensions to
rpmbuild -t*/--tarbuild completion.
* Don't hardcode path to lsmod.
[ Todd Zullinger ]
* Make yum complete on filenames after install, deplist, update and upgrade

View File

@ -551,7 +551,7 @@ _modules()
#
_installed_modules()
{
COMPREPLY=( $( compgen -W "$( /sbin/lsmod | \
COMPREPLY=( $( compgen -W "$( PATH="$PATH:/sbin" lsmod | \
awk '{if (NR != 1) print $1}' )" -- $1 ) )
}