From 403320a6f5ecafe020d79ba8dde543df39631631 Mon Sep 17 00:00:00 2001 From: James Cameron Date: Fri, 7 Nov 2008 15:49:32 +1100 Subject: [PATCH] add olpc-battery, add postinst script detection --- initchroot.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/initchroot.sh b/initchroot.sh index 7ac133b..0ba3a6e 100755 --- a/initchroot.sh +++ b/initchroot.sh @@ -166,6 +166,7 @@ fbcon olpc_dcon scx200_acb i8042 +olpc_battery EOF # install packages @@ -244,6 +245,17 @@ sugar EOF fi +# run any local postinstall scripts for the build +PLIST_DIR=${PLIST/.packages/} +if [ -d ${PLIST_DIR} ]; then + if [ -x ${PLIST_DIR}/postinst.sh ]; then + ${PLIST_DIR}/postinst.sh ${ROOT_DIR} + fi + if [ -x ${PLIST_DIR}/postinst-local.sh ]; then + ${PLIST_DIR}/postinst-local.sh ${ROOT_DIR} + fi +fi + # override sources.list with shipping version printf "${APT_SOURCES}\n" >${ROOT_DIR}/etc/apt/sources.list (chroot ${ROOT_DIR} aptitude update) -- 2.39.2