HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/bash-completion/completions/sc-hsm-tool
# this was auto-generated by OpenSC/doc/tools/Makefile.am
_sc_hsm_tool()
{
    COMPREPLY=()
    local cur prev split=false
    _get_comp_words_by_ref cur prev

    _split_longopt && split=true

    opts="		--bio-server1 --bio-server2 --create-dkek-share --dkek-shares --force --import-dkek-share --initialize --key-reference --label --password --pin --pin-retry --pwd-shares-threshold --pwd-shares-total --reader --so-pin --unwrap-key --verbose --wait --wrap-key -C -I -U -W -X -l -r -s -v -w "

    if [ ${COMP_CWORD} -eq 1 ]; then
        COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
        return 0
    fi

    case "${prev}" in
        		!*)
            _filedir so
            return 0
            ;;
        		--create-dkek-share|--import-dkek-share|--unwrap-key|--wrap-key|-C|-I|-U|-W)
            _filedir
            return 0
            ;;
        		--bio-server1|--bio-server2|--create-dkek-share|--dkek-shares|--import-dkek-share|--label|--password|--pin|--pin-retry|--pwd-shares-threshold|--pwd-shares-total|--reader|--so-pin|--unwrap-key|--wrap-key|-C|-I|-U|-W|-l|-r|-s)
            return 0
            ;;
        *)
            COMPREPLY=($(compgen -W "${opts}" -- ${cur}))
            return 0
            ;;
    esac

    $split && return 0

    if [[ "$cur" == -* ]]; then
        _longopt $1
        return
    fi

    _filedir
}
complete -F _sc_hsm_tool sc-hsm-tool


# Local variables:
# mode: shell-script
# sh-basic-offset: 4
# sh-indent-comment: t
# indent-tabs-mode: nil
# End:
# ex: ts=4 sw=4 et filetype=sh