From af9f623273eb994d36d3f02ed37bac6edb10c7cb Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Tue, 21 Oct 2014 16:11:09 +0200 Subject: 33481: resolve completion clashes and tidy-up SUSE/Mandriva related functions --- Completion/Mandriva/Command/_rebootin | 36 ++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) (limited to 'Completion/Mandriva/Command') diff --git a/Completion/Mandriva/Command/_rebootin b/Completion/Mandriva/Command/_rebootin index 1b69609f3..3f30b2591 100644 --- a/Completion/Mandriva/Command/_rebootin +++ b/Completion/Mandriva/Command/_rebootin @@ -1,27 +1,29 @@ #compdef rebootin +local context state line expl +typeset -A opt_args local loader=$(sudo detectloader -q) -_arguments -C -s \ +_arguments -s \ '-n[no immediate reboot just set the flags for next reboot]' \ '-f[create a /fastboot file to reboot in fastboot mode]' \ '*::arguments:->loader_entry' -local expl case $state in - loader_entry) - case $loader in - GRUB) - if [ -r /boot/grub/menu.lst ];then - compadd ${${(M)${(f)"$(