olpc_dcon
scx200_acb
i8042
+olpc_battery
EOF
# install packages
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)