From ece9edc246b09d94656edb8391b80adfe45a3364 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 2 Jul 2007 01:22:13 +0200 Subject: [PATCH] added alias "$(uname -r)-reboot for fast rebooting via kexec --- debian/changelog | 1 + etc/zsh/zshrc | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/debian/changelog b/debian/changelog index 9dba0dd..c775962 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,7 @@ grml-etc-core (0.3.13) unstable; urgency=low - aoeu(): do not use $XKEYBOARD and $KEYTABLE as booting with bootoption dvorak might be not so amusing for people not being used to dvorak keyboard layout :) + - added alias "$(uname -r)-reboot for fast rebooting via kexec -- Michael Prokop Sun, 01 Jul 2007 23:05:58 +0200 diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 032704d..c05bc6c 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -789,6 +789,11 @@ ${BLUE}%n${NO_COLOUR}@%m %40<...<%B%~%b%<< %# " alias mdstat='cat /proc/mdstat' alias ...='cd ../../' + # generate alias named "$KERNELVERSION-reboot" so you can use boot with kexec: + if [ -x /sbin/kexec ] ; then + alias "$(uname -r)-reboot"="kexec -l --initrd=/boot/initrd.img-"$(uname -r)" --command-line=\"$(cat /proc/cmdline)\" /boot/vmlinuz-"$(uname -r)"" + fi + alias cp='nocorrect cp' # no spelling correction on cp alias mkdir='nocorrect mkdir' # no spelling correction on mkdir alias mv='nocorrect mv' # no spelling correction on mv -- 2.1.4