#!/bin/bash # setup default kde behavior install -m 0644 $(get_profile custom-files/kdmrc) ${CDCHROOTDIR}/usr/share/config/kdm/ || die install -m 0644 $(get_profile custom-files/kdeglobals) ${CDCHROOTDIR}/usr/share/config/ || die install -m 0644 $(get_profile custom-files/kdesktoprc) ${CDCHROOTDIR}/usr/share/config/ || die install -m 0644 $(get_profile custom-files/kickerrc) ${CDCHROOTDIR}/usr/share/config/ || die install -m 0644 $(get_profile custom-files/ktiprc) ${CDCHROOTDIR}/usr/share/config/ || die install -m 0644 $(get_profile custom-files/kpersonalizerrc) ${CDCHROOTDIR}/usr/share/config/ || die # language locales install -m 0644 $(get_profile custom-files/35locale) ${CDCHROOTDIR}/etc/env.d/ || die # enable the locale (needed with >=glibc-2.5) if [[ -x ${CDCHROOTDIR}/usr/sbin/locale-gen ]] then source $(get_profile custom-files/35locale) sed -i "s:^#${LC_ALL}:${LC_ALL}:g" ${CDCHROOTDIR}/etc/locale.gen chroot ${CDCHROOTDIR} locale-gen fi chroot ${CDCHROOTDIR} env-rebuild # add magellan user chroot ${CDCHROOTDIR} useradd -m -g users -G audio,wheel,cdrom,video,cdrw,usb,games,plugdev -s /bin/bash magellan # set password to 'magellan' chroot ${CDCHROOTDIR} usermod -p $(openssl passwd -1 magellan) magellan