case "$MODE" in finalization) case "$CHROOT" in 'llx-client' | 'llx-lite' | 'llx-musica' | 'llx-pime' | ' llx-infantil' | 'llx-desktop') cp /usr/share/lliurex-apt/skels/client.list $ROOT/etc/apt/sources.list ;; *) cp /etc/apt/sources.list $ROOT/etc/apt/sources.list cp /etc/apt/sources.list.d/*.list $ROOT/etc/apt/sources.list.d/ || true ;; esac [ ! -d /opt/ltsp/$CHROOT/net/mirror/llx1505 ] || umount -l /opt/ltsp/$CHROOT/net/mirror/llx1505 # Working about nsswitch and friends if [ -f /opt/ltsp/$CHROOT/etc/ldap.conf ] ; then rm -f /opt/ltsp/$CHROOT/etc/ldap.conf touch /opt/ltsp/$CHROOT/root/etc.ldap.conf fi if [ -f /opt/ltsp/$CHROOT/etc/ldap/ldap.conf ] ; then rm -f /opt/ltsp/$CHROOT/etc/ldap/ldap.conf touch /opt/ltsp/$CHROOT/root/etc.ldap.ldap.conf fi ;; esac