Add Make target to list all installed packages
[hvlinux.git] / stage5 / hv-install-1
index 9677c03..bffcba4 100755 (executable)
@@ -6,6 +6,10 @@ source /etc/profile
 check_for_root_user
 init_log_file
 
+if [ ${#} -eq 1 -a x"${1}" = x"log" ]; then
+    init_installed_packages_log
+fi
+
 ipkg ${HELP2MAN}
 ipkg ${GSL}
 
@@ -333,9 +337,10 @@ ipkg -m noac ${STELLARIUM}
 ipkg -m noac ${I2C_TOOLS}
 ipkg -m noac ${HDPARM}
 
-rscr mult  "Performing post-install" post-install
-
-write_completed_stage
-display_stage_build_stats
+if [ -z "${LIST_INSTALLED_PACKAGES}" ]; then
+    rscr mult  "Performing post-install" post-install
+    write_completed_stage
+    display_stage_build_stats
+fi
 
 exit $?