Add Make target to list all installed packages
[hvlinux.git] / stage3 / hv-install-1
index 9e3eae8..1990076 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 -m noac ${BASHCOMPLETION}
 ipkg ${WHICH}
 ipkg -m acnb ${REISERFSPROGS} "--sbindir=/sbin"
@@ -250,7 +254,9 @@ if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; the
     fi
 fi
 
-write_completed_stage
-display_stage_build_stats
+if [ -z "${LIST_INSTALLED_PACKAGES}" ]; then
+    write_completed_stage
+    display_stage_build_stats
+fi
 
 exit $?