From: James Cameron Date: Fri, 7 Nov 2008 04:49:32 +0000 (+1100) Subject: add olpc-battery, add postinst script detection X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=403320a6f5ecafe020d79ba8dde543df39631631;p=xodist add olpc-battery, add postinst script detection --- 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)