mirror of
				https://git.proxmox.com/git/fwupd
				synced 2025-10-26 04:56:36 +00:00 
			
		
		
		
	 196c6c69db
			
		
	
	
		196c6c69db
		
	
	
	
	
		
			
			The HSI specification assigns a simple text ID to the current state of firmware security. As new vulnerabilities are found, and as protection measures are updated, new requirements will be added to the required firmware behaviours for each HSI value. The HSI specification is currently incomplete and in active development, and so the --force flag is required in all command line tools. The current ID value will probably change on a given platform so please do not start using the result for any kind of compliance requirements.
		
			
				
	
	
		
			41 lines
		
	
	
		
			610 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			610 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| _fwupdagent_cmd_list=(
 | |
| 	'get-devices'
 | |
| 	'get-updates'
 | |
| 	'get-upgrades'
 | |
| 	'security'
 | |
| )
 | |
| 
 | |
| _fwupdagent_opts=(
 | |
| 	'--verbose'
 | |
| )
 | |
| 
 | |
| _show_modifiers()
 | |
| {
 | |
| 	COMPREPLY+=( $(compgen -W '${_fwupdagent_opts[@]}' -- "$cur") )
 | |
| }
 | |
| 
 | |
| _fwupdagent()
 | |
| {
 | |
| 	local cur prev command
 | |
| 	COMPREPLY=()
 | |
| 	cur=`_get_cword`
 | |
| 	prev=${COMP_WORDS[COMP_CWORD-1]}
 | |
| 	command=${COMP_WORDS[1]}
 | |
| 
 | |
| 	case $command in
 | |
| 	*)
 | |
| 		#find first command
 | |
| 		if [[ ${COMP_CWORD} = 1 ]]; then
 | |
| 			COMPREPLY=( $(compgen -W '${_fwupdagent_cmd_list[@]}' -- "$cur") )
 | |
| 		#modifiers for all commands
 | |
| 		else
 | |
| 			_show_modifiers
 | |
| 		fi
 | |
| 		;;
 | |
| 	esac
 | |
| 
 | |
| 	return 0
 | |
| }
 | |
| 
 | |
| complete -F _fwupdagent fwupdagent
 |