X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=usr_bin%2Fzsh-login;h=382cdb41b4a8fd27b2c5a545be722003dca41285;hb=44813f34920b62ccb68172797ce3ee2ac056457a;hp=646ab3c1d6554188fca8544271229d02f2cc5e9c;hpb=5da9e112159d7adb89b6f8ba6e85e348d61eec83;p=grml-scripts-core.git diff --git a/usr_bin/zsh-login b/usr_bin/zsh-login index 646ab3c..382cdb4 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: Sam Feb 17 13:58:14 CET 2007 [mika] +# Latest change: Sam Mär 17 15:16:04 CET 2007 [mika] ################################################################################ [ -r /etc/grml_version ] && GRMLVERSION=$(cat /etc/grml_version) || GRMLVERSION='(no version information available)' @@ -25,12 +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 +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|nocolor) + # 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