Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64
Your IP : 18.227.134.95
# FreeBSD kldload completion -*- shell-script -*-
[[ $OSTYPE == *freebsd* ]] || return 1
_kldload()
{
local cur prev words cword
_init_completion || return
local moddir=/modules/
[[ -d $moddir ]] || moddir=/boot/kernel/
compopt -o filenames
COMPREPLY=($(compgen -f "$moddir$cur"))
COMPREPLY=(${COMPREPLY[@]#$moddir})
COMPREPLY=(${COMPREPLY[@]%.ko})
} &&
complete -F _kldload kldload
# ex: filetype=sh
|