X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=33b60eab9d9e99cc3c8341a6d2c336e1ebdbce7c;hb=c37569497bb5b632f8db23cbaa4a46c00e033976;hp=3b6d6de0fdaaa3bc3638d1ba308c9dadae5fc047;hpb=ab444f705c2a724fe4e0654d901be8a1ab958cb9;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 3b6d6de..33b60ea 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -790,7 +790,7 @@ ${BLUE}%n${NO_COLOUR}@%m %40<...<%B%~%b%<< %# " alias ...='cd ../../' # generate alias named "$KERNELVERSION-reboot" so you can use boot with kexec: - if [ -x /sbin/kexec ] ; then + if [ -x /sbin/kexec -a -r /proc/cmdline ] ; then alias "$(uname -r)-reboot"="kexec -l --initrd=/boot/initrd.img-"$(uname -r)" --command-line=\"$(cat /proc/cmdline)\" /boot/vmlinuz-"$(uname -r)"" fi