Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 13.59.5.179
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
Disable Function : 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,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/2/task/2/root/proc/2/cwd/usr/share/bash-completion/completions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /proc/2/task/2/root/proc/2/cwd/usr/share/bash-completion/completions/smartctl
# bash completion for smartctl(8)                          -*- shell-script -*-

_smartctl_quietmode()
{
    COMPREPLY=($(compgen -W 'errorsonly silent noserial' -- "$cur"))
}
_smartctl_device()
{
    case $cur in
        areca* | 3ware* | megaraid* | cciss*)
            # shellcheck disable=SC2054
            COMPREPLY+=(${cur%%,*},{0..31})
            COMPREPLY=($(compgen -W '"${COMPREPLY[@]}"' -- "$cur"))
            ;;
        hpt*)
            # shellcheck disable=SC2054
            COMPREPLY+=(hpt,{1..4}/{1..8} hpt,{1..4}/{1..8}/{1..5})
            COMPREPLY=($(compgen -W '"${COMPREPLY[@]}"' -- "$cur"))
            ;;
        *)
            COMPREPLY=($(compgen -W "ata scsi sat usbcypress usbjmicron
                usbsunplus marvell areca 3ware hpt megaraid cciss auto test" \
                -- "$cur"))
            case "${COMPREPLY[@]}" in
                areca | 3ware | hpt | megaraid | cciss)
                    compopt -o nospace
                    ;;
            esac
            ;;
    esac
}
_smartctl_tolerance()
{
    COMPREPLY=($(compgen -W 'normal conservative permissive verypermissive' \
        -- "$cur"))
}
_smartctl_badsum()
{
    COMPREPLY=($(compgen -W 'warn exit ignore' -- "$cur"))
}
_smartctl_report()
{
    COMPREPLY=($(compgen -W 'ioctl ataioctl scsiioctl' -- "$cur"))
}
_smartctl_powermode()
{
    COMPREPLY=($(compgen -W 'never sleep standby idle' -- "$cur"))
}
_smartctl_feature()
{
    COMPREPLY=($(compgen -W 'on off' -- "$cur"))
}
_smartctl_log()
{
    COMPREPLY=($(compgen -W 'error selftest selective directory background
        sasphy sasphy,reset sataphy sataphy,reset scttemp scttempsts
        scttemphist scterc gplog smartlog xerror xselftest' -- "$cur"))
}
_smartctl_vendorattribute()
{
    COMPREPLY=($(compgen -W 'help 9,minutes 9,seconds 9,halfminutes 9,temp
        192,emergencyretractcyclect 193,loadunload 194,10xCelsius 194,unknown
        198,offlinescanuncsectorct 200,writeerrorcount 201,detectedtacount
        220,temp' -- "$cur"))
}
_smartctl_firmwarebug()
{
    COMPREPLY=($(compgen -W 'none samsung samsung2 samsung3 swapid' \
        -- "$cur"))
}
_smartctl_presets()
{
    COMPREPLY=($(compgen -W 'use ignore show showall' -- "$cur"))
}
_smartctl_test()
{
    [[ $cur == @(pending|scttempint|vendor), ]] && return
    COMPREPLY=($(compgen -W 'offline short long conveyance select,
        select,redo select,next afterselect,on afterselect,off pending,
        scttempint, vendor,' -- "$cur"))
    [[ ${COMPREPLY-} == *, ]] && compopt -o nospace
}
_smartctl_drivedb()
{
    local prefix=
    if [[ $cur == +* ]]; then
        prefix=+
        cur="${cur#+}"
    fi
    _filedir h
    [[ -n $prefix ]] && COMPREPLY=("${COMPREPLY[@]/#/$prefix}")
}

_smartctl()
{
    local cur prev words cword split
    _init_completion -s || return

    case $prev in
        --quietmode | -!(-*)q)
            _smartctl_quietmode
            ;;
        --device | -!(-*)d)
            _smartctl_device
            return
            ;;
        --tolerance | -!(-*)T)
            _smartctl_tolerance
            return
            ;;
        --badsum | -!(-*)b)
            _smartctl_badsum
            return
            ;;
        --report | -!(-*)r)
            _smartctl_report
            return
            ;;
        --nocheck | -!(-*)n)
            _smartctl_powermode
            return
            ;;
        --smart | --offlineauto | --saveauto | -!(-*)[soS])
            _smartctl_feature
            return
            ;;
        --log | -!(-*)l)
            _smartctl_log
            return
            ;;
        --vendorattribute | -!(-*)v)
            _smartctl_vendorattribute
            return
            ;;
        --firmwarebug | -!(-*)F)
            _smartctl_firmwarebug
            return
            ;;
        --presets | -!(-*)P)
            _smartctl_presets
            return
            ;;
        --drivedb | -!(-*)B)
            _smartctl_drivedb
            return
            ;;
        --test | -!(-*)t)
            _smartctl_test
            return
            ;;
    esac

    $split && return

    if [[ $cur == -* ]]; then
        COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
        [[ ${COMPREPLY-} == *= ]] && compopt -o nospace
    else
        cur=${cur:=/dev/}
        _filedir
    fi
} &&
    complete -F _smartctl smartctl

# ex: filetype=sh

Anon7 - 2022
AnonSec Team