]> 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)
committerJames Cameron <quozl@laptop.org>
Fri, 7 Nov 2008 04:49:32 +0000 (15:49 +1100)
initchroot.sh

index 7ac133b43338bce9d5d426f06710293a3407bdd4..0ba3a6e0000b6e28b1f4e7c09c5e0ee2a629aafa 100755 (executable)
@@ -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)