From b490b9ebf4196521ec33463300dc93f30f509ce8 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 13 Jan 2018 00:56:40 -0500 Subject: inst: Load postinst code from separate files --- (limited to 'inst') diff --git a/inst b/inst index 6189752..c7ff1f8 100755 --- a/inst +++ b/inst @@ -4,6 +4,7 @@ set -u host= postinst_pkgs= +postinst_script= dev= target= @@ -394,6 +395,11 @@ do_install_extra() return 1 } +do_postinst() +{ + . "${postinst_script}" +} + do_chroot_cleanup() { local mp= @@ -481,6 +487,7 @@ main() . "${host_dir}/conf" postinst_pkgs="$(sed 's/#.*$//;' "${host_dir}/pkgs")" + postinst_script="${host_dir}/postinst" log="$(mktemp)" exec 4>"${log}" -- cgit v0.9.1