From adab120a970bf95cd3c754ae6c331e7d64194a26 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 31 May 2013 19:20:43 -0400 Subject: bootstrap-stage1-install.sh: Add more output. --- diff --git a/bootstrap-stage1-install.sh b/bootstrap-stage1-install.sh index 40b2d34..9876eda 100755 --- a/bootstrap-stage1-install.sh +++ b/bootstrap-stage1-install.sh @@ -16,6 +16,20 @@ main() install_packages } +log() +{ + local msg i + + msg="$(printf "${@}")" + printf '\n%s\n' "${msg}" + i=0 + while [ ${i} -lt ${#msg} ]; do + printf '-' + i=$(($i + 1)) + done + printf '\n\n' +} + install_packages() { local opk elf_interp @@ -27,6 +41,7 @@ install_packages() for opk in ../pkg/*_${ARCH}_${PLAT}.opk ../pkg/*_${ARCH}_all.opk \ ../pkg/*_all_${PLAT}.opk ../pkg/*_all_all.opk; do [ -f "${opk}" ] || continue + log 'Installing package %s...' "${opk%%_*}" tar -xzOf "${opk}" data.tar.gz | tar -xz done -- cgit v0.9.1