Contents of /trunk/mlivecdbuild/profiles/knoppix-i686-svn/prepare_custom
Parent Directory | Revision Log
Revision 940 -
(show annotations)
(download)
Wed Nov 18 12:56:23 2009 UTC (14 years, 10 months ago) by niro
File size: 634 byte(s)
Wed Nov 18 12:56:23 2009 UTC (14 years, 10 months ago) by niro
File size: 634 byte(s)
-added knoppix-svn profiles
1 | #!/bin/bash |
2 | |
3 | # language locales |
4 | install -m 0644 $(get_profile custom-files/35locale) ${CDCHROOTDIR}/etc/env.d/ || die |
5 | # enable the locale (needed with >=glibc-2.5) |
6 | if [[ -x ${CDCHROOTDIR}/usr/sbin/locale-gen ]] |
7 | then |
8 | source $(get_profile custom-files/35locale) |
9 | sed -i "s:^#${LC_ALL}:${LC_ALL}:g" ${CDCHROOTDIR}/etc/locale.gen |
10 | chroot ${CDCHROOTDIR} locale-gen |
11 | fi |
12 | chroot ${CDCHROOTDIR} env-rebuild |
13 | |
14 | # add magellan user |
15 | chroot ${CDCHROOTDIR} useradd -m -g users -G audio,wheel,cdrom,video,cdrw,usb,games,plugdev -s /bin/bash magellan |
16 | # set password to 'magellan' |
17 | chroot ${CDCHROOTDIR} usermod -p $(openssl passwd -1 magellan) magellan |