From: James Cameron Date: Fri, 7 Nov 2008 04:49:32 +0000 (+1100) Subject: add olpc-battery, add postinst script detection X-Git-Tag: v0.4~18 X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8f3f31cb0dd4593a26bad7eabed6c4900b7622a;p=xodist add olpc-battery, add postinst script detection --- diff --git a/initchroot.sh b/initchroot.sh index 542a1d7..f5efe4d 100755 --- a/initchroot.sh +++ b/initchroot.sh @@ -166,6 +166,7 @@ fbcon olpc_dcon scx200_acb i8042 +olpc_battery EOF # install packages @@ -245,6 +246,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)