Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > d6793afd4b1f0cb40996805c946ef71c > files > 4

zsh-4.3.6-1mdv2009.0.src.rpm

--- /dev/null	1970-01-01 01:00:00.000000000 +0100
+++ zsh-4.1.0-dev-7/Completion/Mandriva/Command/_rebootin	2003-04-21 17:13:20.000000000 +0200
@@ -0,0 +1,27 @@
+#compdef rebootin
+
+local loader=$(sudo detectloader -q)
+
+_arguments -C -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 $(awk '{ if ($1 ~ /^title/) print $2 }' /boot/grub/menu.lst)
+		fi
+		;;
+	    LILO)
+		if [ -r /etc/lilo.conf ];then
+		compadd $(awk -F= '{ if ($0 ~ /label=/) print $2 }' /etc/lilo.conf)
+		fi
+		;;
+	    *)
+		;;
+	esac
+esac
--- zsh-4.1.0-dev-7/Completion/Mandriva/Command/.distfiles.chmou	2002-10-15 19:59:40.000000000 +0200
+++ zsh-4.1.0-dev-7/Completion/Mandriva/Command/.distfiles	2003-04-21 17:13:59.000000000 +0200
@@ -1,4 +1,5 @@
 DISTFILES_SRC='
 .distfiles
 _urpmi
+_rebootin
 '