8 # Print a message and wait for enter
9 if [ -x /sbin/usplash_write ]
11 /sbin/usplash_write "INPUTENTER ${@}"
12 read nunya < /dev/.initramfs/usplash_outfifo
15 _log_msg "Waiting: ${@} ..."
21 VALUE="$(eval echo -n \${$STRING})"
23 if [ -f /live.vars ] && cat /live.vars | grep -sq "export ${STRING}"
25 sed -i -e 's/\('${STRING}'=\).*$/\1'${VALUE}'/' /live.vars
27 echo "export ${STRING}=\"${VALUE}\"" >> /live.vars
30 eval export "${STRING}"="${VALUE}"
35 if [ "$1" != "C" ]; then
36 # Match the language code with 3rd field in languagelist
37 line=$(grep -v "^#" /root/usr/share/live-initramfs/languagelist | cut -f3,4,5 -d\; | grep -v ';C$' | grep "^$langpart;")
38 if [ -n "$line" ]; then
39 if [ "$(echo "$line" | grep -c '')" -gt 1 ]; then
40 # More than one match; try matching the
43 if [ "$countrypart" = "$1" ]; then
44 countryline="$(echo "$line" | head -n1)"
45 echo "${countryline##*;}"
48 countrypart="${countrypart%%[@.]*}"
49 countryline="$(echo "$line" | grep ";$countrypart;" | head -n1 || true)"
50 if [ "$countryline" ]; then
51 echo "${countryline##*;}"
62 # Override panic from scripts/functions
65 DEB_1="\033[1;31m ,''\`. \033[0m"
66 DEB_2="\033[1;31m: :' : \033[0m"
67 DEB_3="\033[1;31m\`. \`' \033[0m"
68 DEB_4="\033[1;31m \`- \033[0m"
70 LIVELOG="\033[1;37m/live.log\033[0m"
71 DEBUG="\033[1;37mdebug\033[0m"
73 # Reset redirections to avoid buffering
80 printf " ${DEB_2} \033[1;37mBOOT FAILED !!!\033[0m\n"
82 printf " ${DEB_4} This Debian Live image failed to boot.\n\n"
84 printf " Please file a bug against the 'live-initramfs' package or email the Debian\n"
85 printf " Live mailing list at <debian-live-devel@lists.alioth.debian.org>, making\n"
86 printf " sure to note the exact version, name and distribution of the image you were\n"
87 printf " attempting to boot.\n\n"
89 printf " The file ${LIVELOG} contains some debugging information but booting with the\n"
90 printf " ${DEBUG} command-line parameter will greatly increase its verbosity which is\n"
91 printf " extremely useful when diagnosing issues.\n\n"
93 if [ -n "${panic}" ]; then
94 printf " live-initramfs will now restart your system. "
96 printf " live-initramfs will now start a shell. "
98 printf "The error message was:\n\n "
100 # Call original panic