new helper function for kernel versions

master
Guillaume Rousse 2009-01-19 21:30:58 +01:00
parent 9afe7ca991
commit 19fea3d733
1 changed files with 7 additions and 0 deletions

View File

@ -357,6 +357,13 @@ _configured_interfaces()
fi
}
# This function complete on available kernels
#
_kernel_versions()
{
COMPREPLY=( $( command ls /lib/modules | grep "^$cur" ) )
}
# This function completes on all available network interfaces
# -a: restrict to active interfaces only
# -w: restrict to wireless interfaces only