projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ab444f7
)
/etc/zsh/zshrc: yse kexec alias only if /proc/cmdline can be read
0.3.14
author
Michael Prokop
<mika@grml.org>
Wed, 4 Jul 2007 10:41:57 +0000
(12:41 +0200)
committer
Michael Prokop
<mika@grml.org>
Wed, 4 Jul 2007 10:41:57 +0000
(12:41 +0200)
debian/changelog
patch
|
blob
|
history
etc/zsh/zshrc
patch
|
blob
|
history
diff --git
a/debian/changelog
b/debian/changelog
index
0b047a6
..
33c90f7
100644
(file)
--- a/
debian/changelog
+++ b/
debian/changelog
@@
-1,3
+1,9
@@
+grml-etc-core (0.3.14) unstable; urgency=low
+
+ * /etc/zsh/zshrc: yse kexec alias only if /proc/cmdline can be read.
+
+ -- Michael Prokop <mika@grml.org> Wed, 04 Jul 2007 12:41:29 +0200
+
grml-etc-core (0.3.13) unstable; urgency=low
* /etc/zsh/zshrc:
grml-etc-core (0.3.13) unstable; urgency=low
* /etc/zsh/zshrc:
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
3b6d6de
..
33b60ea
100644
(file)
--- 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:
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
alias "$(uname -r)-reboot"="kexec -l --initrd=/boot/initrd.img-"$(uname -r)" --command-line=\"$(cat /proc/cmdline)\" /boot/vmlinuz-"$(uname -r)""
fi