From bb32e9eb90d2edf695b1c6447b321fc016a396d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20J=C3=B8rgen=20Br=C3=B8nner?= Date: Tue, 27 Dec 2016 07:25:40 +0100 Subject: [PATCH] udisksctl: add new/missing command --- src/_udisksctl | 8 ++++++++ 1 file changed, 8 insertions(+) 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' \