summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-05-31 19:20:43 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-05-31 19:20:43 (EDT)
commitadab120a970bf95cd3c754ae6c331e7d64194a26 (patch)
treea64d89add6e652e29155f893169cf62883fec07c
parentd9ce4dc128165ffb7ba95e2c175be82713c53745 (diff)
bootstrap-stage1-install.sh: Add more output.
-rwxr-xr-xbootstrap-stage1-install.sh15
1 files changed, 15 insertions, 0 deletions
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