aboutsummaryrefslogtreecommitdiffstats
path: root/src/_udisksctl
diff options
context:
space:
mode:
Diffstat (limited to 'src/_udisksctl')
-rw-r--r--src/_udisksctl8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/_udisksctl b/src/_udisksctl
index 745c7d3..e0efe54 100644
--- a/src/_udisksctl
+++ b/src/_udisksctl
@@ -23,6 +23,7 @@
# -------
#
# * Damir Jelić <poljarinho at gmail.com> [1]
+# * Ole Jørgen Brønner <olejorgenb at yahoo.no> (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' \