0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.135.195.180


Current Path : /snap/core/16928/usr/share/bash-completion/completions/
Upload File :
Current File : //snap/core/16928/usr/share/bash-completion/completions/insmod

# Linux insmod(8) completion                               -*- shell-script -*-

_insmod()
{
    local cur prev words cword
    _init_completion || return

    # do filename completion for first argument
    if [[ $cword -eq 1 ]]; then
        _filedir '@(?(k)o?(.gz))'
    else # do module parameter completion
        COMPREPLY=( $( compgen -W "$( PATH="$PATH:/sbin" modinfo \
            -p ${words[1]} 2>/dev/null | cut -d: -f1 )" -- "$cur" ) )
    fi
} &&
complete -F _insmod insmod insmod.static

# ex: ts=4 sw=4 et filetype=sh