Re: Frage
* Gerhard Wolfstieg <gw@wolfstieg.com> [2020-12-26 17:16 +0100]:
[...]
> Daß der Bildschirm blau anläuft kommt bei Debian (hier ist der
> Debian Bezug) zum Glück nicht mehr vor.
>>>
#!/bin/bash
# Blue screen of death implementation for Linux ;-)
# Author: Christian Steinruecken <cstein@suse.de>
if test -t 0; then
set -- `stty size`
L="$1"
R="$2"
else
L="25"
R="80"
fi
echo -en "\033[m\033[44;37m\033[H\033[J"
LL=`expr $L / 2 - 5`
RR=`expr $R / 2 - 3`
echo -en "\033[${LL}B"
echo -en "\033[${RR}G"
echo -e "\033[47;34m Linux \033[37;44m"
RR=`expr $R / 2 - 34`
p=`echo -en "\033[${RR}G"`
echo -e "\033[1m"
case "$LANG" in
de*) ( cat <<EOF
${p}Der schwere Ausnahmefehler 0E trat auf in Prozess 01 (/sbin/init &)
${p}Die aktuelle Anwendung kann nicht fortgesetzt werden.
${p} * Drücken Sie RETURN um die Anwendung zu beenden.
${p} * Drücken Sie STRG-ALT-ENTF um Ihren Computer neu zu starten. Vergessen
${p} Sie nicht, vorher laut zu fluchen.
EOF
) | iconv -f LATIN1
;;
# Feel free to add more languages!
C*) cat <<EOF
${p}The fatal exception 0E occurred in prozess 1 (/sbin/init &)
${p}The current application cannot be continued.
${p} * Press RETURN to close the application.
${p} * Press CTRL-ALT-DEL to reboot your computer. Do not forget to
${p} scream and curse.
EOF
;;
esac
if test -t 1; then
read
echo -en "\033[${L}H\033[m"
echo -e "\033[KOh, and yes... Have a nice day!! ;-)"
else
echo -en "\033[${L}H\033[m"
fi
exit 0
<<<
Elimar
--
Learned men are the cisterns of knowledge,
not the fountainheads ;-)
Reply to:
- References:
- Frage
- From: Gerhard Wolfstieg <gw@wolfstieg.com>