- make insmod/modprobe completion handle .ko files for the 2.5/2.6 Linux kernel
This commit is contained in:
parent
3ff1aab725
commit
c0ebebe77a
@ -1,6 +1,6 @@
|
||||
# bash_completion - some programmable completion functions for bash 2.05b
|
||||
#
|
||||
# $Id: bash_completion,v 1.563 2003/05/06 08:39:49 ianmacd Exp $
|
||||
# $Id: bash_completion,v 1.564 2003/05/16 07:12:14 ianmacd Exp $
|
||||
#
|
||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||
#
|
||||
@ -573,7 +573,7 @@ _insmod()
|
||||
elif [ -r $modpath -a -x $modpath ]; then
|
||||
# do module name completion
|
||||
COMPREPLY=( $( command ls -R $modpath | \
|
||||
sed -ne 's/^\('$cur'.*\)\.o\(\|.gz\)$/\1/p') )
|
||||
sed -ne 's/^\('$cur'.*\)\.k\?o\(\|.gz\)$/\1/p') )
|
||||
else
|
||||
_filedir
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user