7 # Print a message and wait for enter
8 if [ -x /bin/plymouth ] && plymouth --ping
10 plymouth message --text="$@"
11 plymouth watch-keystroke | read nunya
12 elif [ -x /sbin/usplash_write ]
14 /sbin/usplash_write "INPUTENTER ${@}"
15 read nunya < /dev/.initramfs/usplash_outfifo
16 else if [ -x /sbin/splashy_update ] ; then
17 /sbin/splashy_update "getstring ${@}" | read nunya
20 _log_msg "Waiting: ${@} ... \n"
26 VALUE="$(eval echo -n \${$STRING})"
28 if [ -f /live.vars ] && grep -sq "export ${STRING}" /live.vars
30 sed -i -e 's/\('${STRING}'=\).*$/\1'${VALUE}'/' /live.vars
32 echo "export ${STRING}=\"${VALUE}\"" >> /live.vars
35 eval export "${STRING}"="${VALUE}"
40 if [ "$1" != "C" ]; then
41 # Match the language code with 3rd field in languagelist
42 line=$(grep -v "^#" /usr/share/live-boot/languagelist | cut -f1,3,6 -d\; | grep -v ';C$' | grep "^$langpart;")
43 if [ -n "$line" ]; then
44 if [ "$(echo "$line" | grep -c '')" -gt 1 ]; then
45 # More than one match; try matching the
48 if [ "$countrypart" = "$1" ]; then
49 countryline="$(echo "$line" | head -n1)"
50 echo "${countryline##*;}"
53 countrypart="${countrypart%%[@.]*}"
54 countryline="$(echo "$line" | grep ";$countrypart;" | head -n1 || true)"
55 if [ "$countryline" ]; then
56 echo "${countryline##*;}"
67 # Override maybe_break from scripts/functions
70 if [ "${break}" = "$1" ]; then
73 panic "Spawning shell within the initramfs"
77 # Override panic from scripts/functions
80 DEB_1="\033[1;31m .''\`. \033[0m"
81 DEB_2="\033[1;31m: :' : \033[0m"
82 DEB_3="\033[1;31m\`. \`'\` \033[0m"
83 DEB_4="\033[1;31m \`- \033[0m"
85 LIVELOG="\033[1;37m/live.log\033[0m"
86 DEBUG="\033[1;37mdebug\033[0m"
88 # Reset redirections to avoid buffering
95 printf " ${DEB_2} \033[1;37mBOOT FAILED!\033[0m\n"
97 printf " ${DEB_4} This Debian Live image failed to boot.\n\n"
99 printf " Please file a bug against the 'live-boot' package or email the Debian\n"
100 printf " Live mailing list at <debian-live@lists.debian.org>, making sure to note the\n"
101 printf " exact version, name and distribution of the image you were attempting to boot.\n\n"
103 printf " The file ${LIVELOG} contains some debugging information but booting with the\n"
104 printf " ${DEBUG} command-line parameter will greatly increase its verbosity which is\n"
105 printf " extremely useful when diagnosing issues.\n\n"
107 if [ -n "${panic}" ]; then
108 printf " live-boot will now restart your system. "
110 printf " live-boot will now start a shell. "
112 printf "The error message was:\n\n "
114 # Call original panic