xsay: add support for sselp and xclip; output error message
[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: Don Mär 29 16:02:01 CEST 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 CMDLINE=$(cat /proc/cmdline)
29 case "$CMDLINE" in
30    *swspeak*|*blind*|*brltty*|*speakup*)
31       if [ -x /usr/bin/flite ] ; then
32          aumix -w 90 -v 90 -p 90 -m 90
33          flite -o play -t "Finished booting"
34       fi
35       ;;
36    noquick)
37       # do nothing
38       ;;
39    *) # by default run grml-quickconfig, but only if running as root
40       if [ $(id -u) = "0" ] ; then
41          # do not run grml-quickconfig on grml-small
42          if ! grep -q small /etc/grml_version ; then
43             [ -x /usr/sbin/grml-quickconfig ] && /usr/sbin/grml-quickconfig
44          fi
45       fi
46 esac
47
48 exec /bin/zsh -l
49
50 ## END OF FILE #################################################################