do not set TZ via grml-setlang, added grml-quickconfig and integrated it in zsh-login
[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 Mär 17 12:40:51 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 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          [ -x /usr/sbin/grml-quickconfig ] && /usr/sbin/grml-quickconfig
42       fi
43 esac
44
45 exec /bin/zsh -l
46
47 ## END OF FILE #################################################################