Contents of /trunk/mlivecdbuild/profiles/knoppix/prepare_custom
Parent Directory | Revision Log
Revision 652 -
(show annotations)
(download)
Sun Jan 13 12:13:36 2008 UTC (16 years, 8 months ago) by niro
File size: 1232 byte(s)
Sun Jan 13 12:13:36 2008 UTC (16 years, 8 months ago) by niro
File size: 1232 byte(s)
- building locales with local-gen on systems with >=glibc-2.5 - added default user to plugdev group
1 | #!/bin/bash |
2 | |
3 | # setup default kde behavior |
4 | install -m 0644 $(get_profile custom-files/kdmrc) ${CDCHROOTDIR}/usr/share/config/kdm/ || die |
5 | install -m 0644 $(get_profile custom-files/kdeglobals) ${CDCHROOTDIR}/usr/share/config/ || die |
6 | install -m 0644 $(get_profile custom-files/kdesktoprc) ${CDCHROOTDIR}/usr/share/config/ || die |
7 | install -m 0644 $(get_profile custom-files/kickerrc) ${CDCHROOTDIR}/usr/share/config/ || die |
8 | install -m 0644 $(get_profile custom-files/ktiprc) ${CDCHROOTDIR}/usr/share/config/ || die |
9 | install -m 0644 $(get_profile custom-files/kpersonalizerrc) ${CDCHROOTDIR}/usr/share/config/ || die |
10 | |
11 | # language locales |
12 | 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 |
21 | |
22 | # add magellan user |
23 | chroot ${CDCHROOTDIR} useradd -m -g users -G audio,wheel,cdrom,video,cdrw,usb,games,plugdev -s /bin/bash magellan |
24 | # set password to 'magellan' |
25 | chroot ${CDCHROOTDIR} usermod -p $(openssl passwd -1 magellan) magellan |