3 # Purpose: customized zsh login welcome screen for use at grml
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 ################################################################################
11 [ -r /etc/grml_version ] && GRMLVERSION=$(cat /etc/grml_version) || GRMLVERSION='(no version information available)'
13 # allow customized release information
14 [ -r /etc/release_info ] && cat /etc/release_info
16 PATH=$HOME/bin:/bin:/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/games:/home/grml/bin
18 # Activate unicode console if running within utf8 environment
19 # Dirty hack to fix unicode issue on amd64...
20 # unicode_start during bootprocess just does not work reliable :(
22 if [ -r /etc/default/locale ] ; then
23 if grep -q "LANG=.*UTF" /etc/default/locale ; then
24 for vc in `seq 1 ${NUM_CONSOLES}` ; do
25 echo -n -e '\033%G' > /dev/tty${vc}
28 dumpkeys | loadkeys --unicode > /dev/null
32 CMDLINE=$(cat /proc/cmdline)
34 # allow customized startup via bootoption startup:
36 script="$(getBootParam startup)"
37 if [ -x $(which $script) ] ; then
41 # turn on speakers for accessibility users:
42 *swspeak*|*blind*|*brltty*|*speakup*)
43 if [ -x /usr/bin/flite ] ; then
44 aumix -w 90 -v 90 -p 90 -m 90
45 flite -o play -t "Finished booting"
49 # do nothing if booting with bootoption noquick:
52 *) # by default run grml-quickconfig, but only if running as root
53 if [ $(id -u) = "0" ] ; then
54 # do not run grml-quickconfig on grml-small
55 if ! grep -q small /etc/grml_version ; then
56 [ -x /usr/sbin/grml-quickconfig ] && /usr/sbin/grml-quickconfig
61 # display version information depending on the version:
62 if grep -q -- '-rc[0-9]' /etc/grml_version 2>/dev/null ; then
65 echo 'NOTICE: This is a release candidate of grml!'
66 echo 'Please notice that this is not yet a stable release.'
67 echo 'See http://wiki.grml.org/doku.php?id=release_candidate for known issues.'
68 echo 'Please report any bugs you notice: bugs@grml.org'
72 if grep -q 'grml-live-autobuild' /etc/grml_version 2>/dev/null ; then
75 echo 'NOTICE: This is a daily snapshot version of grml!'
76 echo 'Please notice that this is not yet a stable release.'
77 echo 'See http://daily.grml.org/ for more details.'
78 echo 'Please report any bugs you notice: daily@grml.org'
82 # just print out one single line if bootoption nowelcome is present,
83 # otherwise print usual welcome screen
84 if grep -q nowelcome /proc/cmdline 2>/dev/null ; then
89 Welcome to ${GRMLVERSION}!
91 New to grml? Want to read some documentation?
92 Start via running 'grml-info'.
93 Get tips and hints via 'grml-tips \$KEYWORD'.
94 New to zsh? Run 'zsh-help'.
96 Switch to other consoles via alt-F<number> keys.
98 Happy hacking! http://grml.org/
104 ## END OF FILE #################################################################