X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_bin%2Fzsh-login;h=1a41bae3127f53c5f64aee344d0d62fd060b4cad;hb=470961a79c6f99cdec8d3063e4ad89ca6297982b;hp=69688f175725c8801190401a18169e5576f0a2f4;hpb=e0999fecdb06e51a86f6078435efbd0fdc8cd6a5;p=grml-scripts.git diff --git a/usr_bin/zsh-login b/usr_bin/zsh-login index 69688f1..1a41bae 100755 --- a/usr_bin/zsh-login +++ b/usr_bin/zsh-login @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Mon Dez 18 01:34:26 CET 2006 [mika] +# Latest change: Sam Mär 17 12:40:51 CET 2007 [mika] ################################################################################ [ -r /etc/grml_version ] && GRMLVERSION=$(cat /etc/grml_version) || GRMLVERSION='(no version information available)' @@ -25,17 +25,22 @@ Happy hacking! http://grml.org/ [ -r /etc/release_info ] && cat /etc/release_info -if [ -x /usr/bin/flite ] ; then - CMDLINE=$(cat /proc/cmdline) - case "$CMDLINE" in - *swspeak*|*blind*|*brltty*|*speakup*) flite -o play -t "Finished booting" ;; - esac -fi - -# activate unicode console if running within utf8 environment -if [ -r /etc/default/locale ] ; then - grep -q "LANG=.*UTF" /etc/default/locale && unicode_start -fi +CMDLINE=$(cat /proc/cmdline) +case "$CMDLINE" in + *swspeak*|*blind*|*brltty*|*speakup*) + if [ -x /usr/bin/flite ] ; then + aumix -w 90 -v 90 -p 90 -m 90 + flite -o play -t "Finished booting" + fi + ;; + noquick) + # do nothing + ;; + *) # by default run grml-quickconfig, but only if running as root + if [ $(id -u) = "0" ] ; then + [ -x /usr/sbin/grml-quickconfig ] && /usr/sbin/grml-quickconfig + fi +esac exec /bin/zsh -l