646ab3c1d6554188fca8544271229d02f2cc5e9c
[grml-scripts.git] / usr_bin / zsh-login
1 #!/bin/sh
2 # Filename:      zsh-login
3 # Purpose:       run zsh with login option
4 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports:   see http://grml.org/bugs/
6 # License:       This file is licensed under the GPL v2.
7 # Latest change: Sam Feb 17 13:58:14 CET 2007 [mika]
8 ################################################################################
9
10 [ -r /etc/grml_version ] && GRMLVERSION=$(cat /etc/grml_version) || GRMLVERSION='(no version information available)'
11
12 echo "
13
14 Welcome to grml ${GRMLVERSION}!
15
16 New to grml? Want to read some documentation?
17 Start via running 'grml-info'.
18 Get tips and hints via 'grml-tips \$KEYWORD'.
19 New to zsh? Run 'zsh-help'.
20
21 Switch to other consoles via alt-F<number> keys.
22
23 Happy hacking!               http://grml.org/
24 "
25
26 [ -r /etc/release_info ] && cat /etc/release_info
27
28 if [ -x /usr/bin/flite ] ; then
29  CMDLINE=$(cat /proc/cmdline)
30  case "$CMDLINE" in
31    *swspeak*|*blind*|*brltty*|*speakup*) flite -o play -t "Finished booting" ;;
32  esac
33 fi
34
35 exec /bin/zsh -l
36
37 ## END OF FILE #################################################################