mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2025-08-20 05:13:25 -07:00
Updated msys2 to msys2-base-x86_64-20200903
This commit is contained in:
parent
5bc8dbdc75
commit
2307d54cb1
18501 changed files with 1684082 additions and 720361 deletions
|
@ -2,23 +2,23 @@
|
|||
|
||||
_smartctl_quietmode()
|
||||
{
|
||||
COMPREPLY=( $( compgen -W 'errorsonly silent noserial' -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W 'errorsonly silent noserial' -- "$cur") )
|
||||
}
|
||||
_smartctl_device()
|
||||
{
|
||||
case $cur in
|
||||
areca*|3ware*|megaraid*|cciss*)
|
||||
COMPREPLY+=( ${cur%%,*},{0..31} )
|
||||
COMPREPLY=( $( compgen -W '"${COMPREPLY[@]}"' -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W '"${COMPREPLY[@]}"' -- "$cur") )
|
||||
;;
|
||||
hpt*)
|
||||
COMPREPLY+=( hpt,{1..4}/{1..8} hpt,{1..4}/{1..8}/{1..5} )
|
||||
COMPREPLY=( $( compgen -W '"${COMPREPLY[@]}"' -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W '"${COMPREPLY[@]}"' -- "$cur") )
|
||||
;;
|
||||
*)
|
||||
COMPREPLY=( $( compgen -W "ata scsi sat usbcypress usbjmicron
|
||||
COMPREPLY=( $(compgen -W "ata scsi sat usbcypress usbjmicron
|
||||
usbsunplus marvell areca 3ware hpt megaraid cciss auto test" \
|
||||
-- "$cur" ) )
|
||||
-- "$cur") )
|
||||
case "${COMPREPLY[@]}" in
|
||||
areca|3ware|hpt|megaraid|cciss)
|
||||
compopt -o nospace
|
||||
|
@ -29,59 +29,59 @@ _smartctl_device()
|
|||
}
|
||||
_smartctl_tolerance()
|
||||
{
|
||||
COMPREPLY=( $( compgen -W 'normal conservative permissive verypermissive' \
|
||||
-- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W 'normal conservative permissive verypermissive' \
|
||||
-- "$cur") )
|
||||
}
|
||||
_smartctl_badsum()
|
||||
{
|
||||
COMPREPLY=( $( compgen -W 'warn exit ignore' -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W 'warn exit ignore' -- "$cur") )
|
||||
}
|
||||
_smartctl_report()
|
||||
{
|
||||
COMPREPLY=( $( compgen -W 'ioctl ataioctl scsiioctl' -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W 'ioctl ataioctl scsiioctl' -- "$cur") )
|
||||
}
|
||||
_smartctl_powermode()
|
||||
{
|
||||
COMPREPLY=( $( compgen -W 'never sleep standby idle' -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W 'never sleep standby idle' -- "$cur") )
|
||||
}
|
||||
_smartctl_feature()
|
||||
{
|
||||
COMPREPLY=( $( compgen -W 'on off' -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W 'on off' -- "$cur") )
|
||||
}
|
||||
_smartctl_log()
|
||||
{
|
||||
COMPREPLY=( $( compgen -W 'error selftest selective directory background
|
||||
COMPREPLY=( $(compgen -W 'error selftest selective directory background
|
||||
sasphy sasphy,reset sataphy sataphy,reset scttemp scttempsts
|
||||
scttemphist scterc gplog smartlog xerror xselftest' -- "$cur" ) )
|
||||
scttemphist scterc gplog smartlog xerror xselftest' -- "$cur") )
|
||||
}
|
||||
_smartctl_vendorattribute()
|
||||
{
|
||||
COMPREPLY=( $( compgen -W 'help 9,minutes 9,seconds 9,halfminutes 9,temp
|
||||
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" ) )
|
||||
220,temp' -- "$cur") )
|
||||
}
|
||||
_smartctl_firmwarebug()
|
||||
{
|
||||
COMPREPLY=( $( compgen -W 'none samsung samsung2 samsung3 swapid' \
|
||||
-- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W 'none samsung samsung2 samsung3 swapid' \
|
||||
-- "$cur") )
|
||||
}
|
||||
_smartctl_presets()
|
||||
{
|
||||
COMPREPLY=( $( compgen -W 'use ignore show showall' -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W 'use ignore show showall' -- "$cur") )
|
||||
}
|
||||
_smartctl_test()
|
||||
{
|
||||
[[ $cur == @(pending|scttempint|vendor), ]] && return
|
||||
COMPREPLY=( $( compgen -W 'offline short long conveyance select,
|
||||
COMPREPLY=( $(compgen -W 'offline short long conveyance select,
|
||||
select,redo select,next afterselect,on afterselect,off pending,
|
||||
scttempint, vendor,' -- "$cur" ) )
|
||||
scttempint, vendor,' -- "$cur") )
|
||||
[[ $COMPREPLY == *, ]] && compopt -o nospace
|
||||
}
|
||||
_smartctl_drivedb()
|
||||
{
|
||||
local prefix=
|
||||
if [[ $cur == +* ]] ; then
|
||||
if [[ $cur == +* ]]; then
|
||||
prefix=+
|
||||
cur="${cur#+}"
|
||||
fi
|
||||
|
@ -95,54 +95,54 @@ _smartctl()
|
|||
_init_completion -s || return
|
||||
|
||||
case $prev in
|
||||
-q|--quietmode)
|
||||
--quietmode|-!(-*)q)
|
||||
_smartctl_quietmode
|
||||
;;
|
||||
-d|--device)
|
||||
--device|-!(-*)d)
|
||||
_smartctl_device
|
||||
return
|
||||
;;
|
||||
-T|--tolerance)
|
||||
--tolerance|-!(-*)T)
|
||||
_smartctl_tolerance
|
||||
return
|
||||
;;
|
||||
-b|--badsum)
|
||||
--badsum|-!(-*)b)
|
||||
_smartctl_badsum
|
||||
return
|
||||
;;
|
||||
-r|--report)
|
||||
--report|-!(-*)r)
|
||||
_smartctl_report
|
||||
return
|
||||
;;
|
||||
-n|--nocheck)
|
||||
--nocheck|-!(-*)n)
|
||||
_smartctl_powermode
|
||||
return
|
||||
;;
|
||||
-s|--smart|-o|--offlineauto|-S|--saveauto)
|
||||
--smart|--offlineauto|--saveauto|-!(-*)[soS])
|
||||
_smartctl_feature
|
||||
return
|
||||
;;
|
||||
-l|--log)
|
||||
--log|-!(-*)l)
|
||||
_smartctl_log
|
||||
return
|
||||
;;
|
||||
-v|--vendorattribute)
|
||||
--vendorattribute|-!(-*)v)
|
||||
_smartctl_vendorattribute
|
||||
return
|
||||
;;
|
||||
-F|--firmwarebug)
|
||||
--firmwarebug|-!(-*)F)
|
||||
_smartctl_firmwarebug
|
||||
return
|
||||
;;
|
||||
-P|--presets)
|
||||
--presets|-!(-*)P)
|
||||
_smartctl_presets
|
||||
return
|
||||
;;
|
||||
-B|--drivedb)
|
||||
--drivedb|-!(-*)B)
|
||||
_smartctl_drivedb
|
||||
return
|
||||
;;
|
||||
-t|--test)
|
||||
--test|-!(-*)t)
|
||||
_smartctl_test
|
||||
return
|
||||
;;
|
||||
|
@ -151,12 +151,7 @@ _smartctl()
|
|||
$split && return
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--help --version --info --all --xall
|
||||
--scan --scan-open --quietmode= --device= --tolerance= --badsum=
|
||||
--report= --nocheck= --smart= --offlineauto= --saveauto= --health
|
||||
--capabilities --attributes --log= --vendorattribute=
|
||||
--firmwarebug= --presets= --drivedb= --test= --captive --abort' \
|
||||
-- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") )
|
||||
[[ $COMPREPLY == *= ]] && compopt -o nospace
|
||||
else
|
||||
cur=${cur:=/dev/}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue