X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Fcasper-functions;h=60721b4d08bede1ed9fb5fcc8730e38feb7e9c5a;hb=4bdaa2237c6ae923d1dd068e9024ebceca3f40d9;hp=2603eba38261f98d351aeb637735f251ddbb680e;hpb=c972c6eea545add125883eaaeea459551e54589c;p=live-boot-grml.git diff --git a/scripts/casper-functions b/scripts/casper-functions index 2603eba..60721b4 100644 --- a/scripts/casper-functions +++ b/scripts/casper-functions @@ -1,25 +1,21 @@ . /scripts/functions -. /casper.vars # Override this so we don't call PROGRESS log_end_msg() { - if [ -x /sbin/usplash_write ]; then - /sbin/usplash_write "SUCCESS ok" - fi - _log_msg "Done." + if [ -x /sbin/usplash_write ]; then + /sbin/usplash_write "SUCCESS ok" + fi + _log_msg "Done." } -really_export () +# Print a message and wait for enter +log_wait_msg() { - STRING="${1}" - VALUE="$(eval echo -n \${$STRING})" - - if [ -f /casper.vars ] && cat /casper.vars | grep -sq "export ${STRING}" ; then - sed -i -e 's/\('${STRING}'=\).*$/\1'${VALUE}'/' /casper.vars - else - echo "export ${STRING}=\"${VALUE}\"" >> /casper.vars - fi - eval export "${STRING}"="${VALUE}" -} \ No newline at end of file + if [ -x /sbin/usplash_write ]; then + /sbin/usplash_write "INPUTENTER $@" + read nunya < /dev/.initramfs/usplash_outfifo + fi + _log_msg "Waiting: $@ ..." +}