10 |
|
|
11 |
# language locales |
# language locales |
12 |
install -m 0644 $(get_profile custom-files/35locale) ${CDCHROOTDIR}/etc/env.d/ || die |
install -m 0644 $(get_profile custom-files/35locale) ${CDCHROOTDIR}/etc/env.d/ || die |
13 |
|
# enable the locale (needed with >=glibc-2.5) |
14 |
|
if [[ -x ${CDCHROOTDIR}/usr/sbin/locale-gen ]] |
15 |
|
then |
16 |
|
source $(get_profile custom-files/35locale) |
17 |
|
sed -i "s:^#${LC_ALL}:${LC_ALL}:g" ${CDCHROOTDIR}/etc/locale.gen |
18 |
|
chroot ${CDCHROOTDIR} locale-gen |
19 |
|
fi |
20 |
chroot ${CDCHROOTDIR} env-rebuild |
chroot ${CDCHROOTDIR} env-rebuild |
21 |
|
|
22 |
# add magellan user |
# add magellan user |
23 |
chroot ${CDCHROOTDIR} useradd -m -g users -G audio,wheel,cdrom,video,cdrw,usb,games -s /bin/bash magellan |
chroot ${CDCHROOTDIR} useradd -m -g users -G audio,wheel,cdrom,video,cdrw,usb,games,plugdev -s /bin/bash magellan |
24 |
# set password to 'magellan' |
# set password to 'magellan' |
25 |
chroot ${CDCHROOTDIR} usermod -p $(openssl passwd -1 magellan) magellan |
chroot ${CDCHROOTDIR} usermod -p $(openssl passwd -1 magellan) magellan |