Don't hardcode path to lsmod.
parent
47fb2d8f0e
commit
b5505959af
1
CHANGES
1
CHANGES
|
@ -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
|
||||
|
|
|
@ -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 ) )
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue