diff --git a/src/_udisksctl b/src/_udisksctl index 745c7d3..e0efe54 100644 --- a/src/_udisksctl +++ b/src/_udisksctl @@ -23,6 +23,7 @@ # ------- # # * Damir Jelić [1] +# * Ole Jørgen Brønner (minor additions) # # [1] https://lists.freedesktop.org/archives/devkit-devel/2014-February/001554.html # @@ -72,6 +73,7 @@ _udisksctl() { 'lock: Lock an encrypted device' 'loop-setup: Set-up a loop device' 'loop-delete: Delete a loop device' + 'power-off: Safely power off a drive' 'smart-simulate: Set SMART data for a drive' ) _describe -t commands 'udisksctl commands' commands @@ -120,6 +122,12 @@ _udisksctl() { {-b,--block-device}'[Loop device to delete]:block device:_paths' \ '(--no-user-interaction)--no-user-interaction[Do not authenticate the user if needed]' \ ;; + power-off) + _arguments \ + {-p,--object-path}'[Object path for ATA device]:object path:_paths' \ + {-b,--block-device}'[Device file for ATA devic]:block device:_paths' \ + '(--no-user-interaction)--no-user-interaction[Do not authenticate the user if needed]' \ + ;; smart-simulate) _arguments \ {-f,--file}'[File with libatasmart blob]:files:_files' \