X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=configs%2Fdebxo-lxde%2Fhooks;h=100e635446d33458211c63b79c628f35fc470f0e;hb=0df4cdd8e07fa237161496440c418dd37e8c048c;hp=1a4f2976c4124977340bdd0fed51e5a3da0f5d02;hpb=010cf8527c1f1c85009afb94550035f08e0c3d62;p=xodist diff --git a/configs/debxo-lxde/hooks b/configs/debxo-lxde/hooks index 1a4f297..100e635 100644 --- a/configs/debxo-lxde/hooks +++ b/configs/debxo-lxde/hooks @@ -45,7 +45,8 @@ Dir { }; EOF - + # add archive key for lenny-backports + wget -O - http://backports.org/debian/archive.key | (chroot ${ROOT_DIR} apt-key add -) } package_configure_hook() @@ -69,11 +70,8 @@ msr EOF # install some custom packages that aren't on mirrors. ugly hack! - k="http://lunge.mit.edu/~dilinger/debxo-0.2/initramfs-tools_0.92l.2_all.deb - http://lunge.mit.edu/~dilinger/debxo-0.2/ofw-config_0.1_all.deb - http://lunge.mit.edu/~dilinger/debxo-0.4/linux-2.6.25.15_2.6.25.15-165_i386.deb - http://lunge.mit.edu/~dilinger/debxo-0.5/xserver-xorg-video-geode_2.11.0-0.3_i386.deb - http://lunge.mit.edu/~dilinger/debxo-0.5/autox_0.1_all.deb" + k="http://lunge.mit.edu/~dilinger/debxo-0.2/ofw-config_0.1_all.deb + http://lunge.mit.edu/~dilinger/debxo-0.4/linux-2.6.25.15_2.6.25.15-165_i386.deb" mkdir -p cache for i in $k; do pkg=$(basename ${i}) @@ -85,10 +83,6 @@ EOF rm -f ${ROOT_DIR}/${pkg} done - # take some packages that are okay to upgrade off hold - echo xserver-xorg-video-geode install | (chroot ${ROOT_DIR} dpkg --set-selections) - echo autox install | (chroot ${ROOT_DIR} dpkg --set-selections) - # No longer a need for xorg.conf rm -f ${ROOT_DIR}/etc/X11/xorg.conf @@ -97,9 +91,11 @@ EOF cp 30-keymap-olpc.fdi ${ROOT_DIR}/usr/share/hal/fdi/information/10freedesktop/ fi - # configure autox - if [ -f ${ROOT_DIR}/etc/default/autox ]; then - sed --in-place "s/USER=$/USER=${DEFUSER}/" ${ROOT_DIR}/etc/default/autox + # configure nodm + F=${ROOT_DIR}/etc/default/nodm + if [ -f ${F} ]; then + sed --in-place "s/NODM_USER=.*$/NODM_USER=${DEFUSER}/" ${F} + sed --in-place "s/NODM_ENABLED=.*$/NODM_ENABLED=true/" ${F} fi }