about summary refs log tree commit diff
path: root/Completion/Linux/Command/_modutils
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2009-01-29 17:14:53 +0000
committerClint Adams <clint@users.sourceforge.net>2009-01-29 17:14:53 +0000
commit4527d0dfff47851fa3e54b2f56797a276190b78e (patch)
tree86c5dd4d5d35167e31a86a8292ad893f1b86522d /Completion/Linux/Command/_modutils
parent844b8b33d34212c10ae1290e5419ca5d463d9e89 (diff)
downloadzsh-4527d0dfff47851fa3e54b2f56797a276190b78e.tar.gz
zsh-4527d0dfff47851fa3e54b2f56797a276190b78e.tar.xz
zsh-4527d0dfff47851fa3e54b2f56797a276190b78e.zip
Jörg Sommer: 26451: use globbing to find available modules, now that modprobe -l is deprecated.
Diffstat (limited to 'Completion/Linux/Command/_modutils')
-rw-r--r--Completion/Linux/Command/_modutils2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Linux/Command/_modutils b/Completion/Linux/Command/_modutils
index eefb11f2a..828926dfb 100644
--- a/Completion/Linux/Command/_modutils
+++ b/Completion/Linux/Command/_modutils
@@ -78,7 +78,7 @@ case "$state" in
   ;&
 
   all_modules)
-    modules=( ${${${${(f)"$(_call_program modules ${(M)words[1]##*/}modprobe -l 2>/dev/null)"}:#}##*/}%%.*} )
+    modules=( /lib/modules/$(uname -r)/(*~source)/**/*(.:t:r) )
 
     if [[ $state = loadable_modules ]]; then
         modules=( ${modules:#(${(j:|:)~${=loaded_modules//_/-}})} )