From 0e939af7076ddfcc95dd86acb1a11e797ab0b2cf Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Tue, 16 Sep 2008 14:29:41 -0700 Subject: add postinst hook for install-system --- scripts/install-system | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/install-system b/scripts/install-system index 8cca9a56..c46ddf42 100755 --- a/scripts/install-system +++ b/scripts/install-system @@ -1240,6 +1240,12 @@ if ! eval "$UNION"; then sed -i 's/requisite[ \t][ \t]*pam_securetty.so/required pam_securetty.so/' $rootfsdir/etc/pam.d/login fi +# postinst hook +if [ -e /opt/vyatta/etc/install-system/postinst ]; then + echo "running post-install script" + /opt/vyatta/etc/install-system/postinst $rootfsdir >>$INSTALL_LOG +fi + cp $INSTALL_LOG $rootfsdir/install.log umount $rootfsdir -- cgit v1.2.3