diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-11-07 18:04:54 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-11-07 18:04:54 +0000 |
commit | b97b61975e902c90e6c83c1016794482bc881946 (patch) | |
tree | 394f9cfc66e5a0bcedfb52a7b8fbc3788233ad2a /rescue/tree/etc | |
parent | e45fa9322492ba188be25f78402ea8388e687569 (diff) | |
download | drakx-backup-do-not-use-b97b61975e902c90e6c83c1016794482bc881946.tar drakx-backup-do-not-use-b97b61975e902c90e6c83c1016794482bc881946.tar.gz drakx-backup-do-not-use-b97b61975e902c90e6c83c1016794482bc881946.tar.bz2 drakx-backup-do-not-use-b97b61975e902c90e6c83c1016794482bc881946.tar.xz drakx-backup-do-not-use-b97b61975e902c90e6c83c1016794482bc881946.zip |
set the lang chosen in menu.lst
Diffstat (limited to 'rescue/tree/etc')
-rwxr-xr-x | rescue/tree/etc/oem | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rescue/tree/etc/oem b/rescue/tree/etc/oem index f0ec75951..5e835dd75 100755 --- a/rescue/tree/etc/oem +++ b/rescue/tree/etc/oem @@ -28,8 +28,10 @@ mkdir /cdrom ; mount -r -t iso9660 $cd /cdrom if grep -q " fr" /cdrom/VERSION; then lang=fr + flang=fr_FR else lang=en + flang=en_US fi echo "Found lang $lang" @@ -54,6 +56,9 @@ echo "Copying installation on hard drive" cp -a /boot /cdrom/boot /hd mkdir -p /hd/Mandrake /hd/Mandrake/RPMS cp -a /cdrom/Mandrake/base /cdrom/Mandrake/mdkinst /hd/Mandrake + +perl -pi -e "s/^(kernel .*)/\1 flang=$flang/" /hd/boot/grub/menu.lst + for i in `/etc/closurepkgs /hd/Mandrake/base/depslist.ordered /hd/Mandrake/base/compssList $lang | grep C: | cut -d: -f2`; do [ -e /cdrom/Mandrake/RPMS/$i.*.rpm ] && cp -a /cdrom/Mandrake/RPMS/$i.*.rpm /hd/Mandrake/RPMS done |