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