]> spindle.queued.net Git - xodist/commitdiff
add olpc-battery, add postinst script detection
authorJames Cameron <quozl@laptop.org>
Fri, 7 Nov 2008 04:49:32 +0000 (15:49 +1100)
committerAndres Salomon <dilinger@debian.org>
Sat, 8 Nov 2008 20:14:59 +0000 (15:14 -0500)
initchroot.sh

index 542a1d78eadf04e8f62cb053bd282717607b6f7b..f5efe4da732d403e4fbd9bd2f17946b3b529d001 100755 (executable)
@@ -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)