X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=initchroot.sh;h=ed729b4c98f4e690198b822df1dbe67e60dfa047;hb=60f69f877850cb64fd3cafd349bdb7b51c06462a;hp=542a1d78eadf04e8f62cb053bd282717607b6f7b;hpb=82bbfd0b05b24479a860f2bd3f067d03183fcb22;p=xodist diff --git a/initchroot.sh b/initchroot.sh index 542a1d7..ed729b4 100755 --- a/initchroot.sh +++ b/initchroot.sh @@ -166,6 +166,8 @@ fbcon olpc_dcon scx200_acb i8042 +olpc_battery +msr EOF # install packages @@ -196,6 +198,11 @@ EndSection EOF fi +# key bindings/mappings +if [ -d ${ROOT_DIR}/usr/share/hal/fdi/information/10freedesktop/ ]; then + cp 30-keymap-olpc.fdi ${ROOT_DIR}/usr/share/hal/fdi/information/10freedesktop/ +fi + # configure kdm, kde if [ -d ${ROOT_DIR}/etc/kde3/kdm ]; then sed --in-place "s/AllowNullPasswd=false/AllowNullPasswd=true/;s/#AutoLoginEnable=true/AutoLoginEnable=true/;s/#AutoLoginUser=fred/AutoLoginUser=${DEFUSER}/" ${ROOT_DIR}/etc/kde3/kdm/kdmrc @@ -245,6 +252,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)