diff options
author | James Meyer <james.meyer@operamail.com> | 2011-10-20 21:14:35 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2011-10-20 21:14:35 (GMT) |
commit | fc97c870b8a068dd48624b710da4d271206dc158 (patch) | |
tree | d234a1c233b13c3f57049d082d9b2385cabe93b6 /build_tools/larch8/larch0/profiles/linhes-remote-testing-i686/post_process | |
parent | 3b5fc3346d55c199899ed4eea984ca2783631cfe (diff) | |
download | linhes_dev-fc97c870b8a068dd48624b710da4d271206dc158.zip |
when VNC is started, display the ip for installs.
Diffstat (limited to 'build_tools/larch8/larch0/profiles/linhes-remote-testing-i686/post_process')
-rw-r--r-- | build_tools/larch8/larch0/profiles/linhes-remote-testing-i686/post_process/locale.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/build_tools/larch8/larch0/profiles/linhes-remote-testing-i686/post_process/locale.py b/build_tools/larch8/larch0/profiles/linhes-remote-testing-i686/post_process/locale.py new file mode 100644 index 0000000..70cfcbd --- /dev/null +++ b/build_tools/larch8/larch0/profiles/linhes-remote-testing-i686/post_process/locale.py @@ -0,0 +1,23 @@ +def genlocale(): + #logging.info("Generating locales") + locale_list=[ "en_US ISO-8859-1", "en_US.UTF-8 UTF-8" , "de_DE.UTF-8", "da_DK.utf8", "en_DK.utf8", "it_IT.utf8", "de_DE.UTF-8"] + #locale_list=['UTF-8', 'en_US ISO-8859-1'] + + localefile="/etc/locale.gen" + f = open(localefile) + lines = f.readlines() + f.close() + + f = open(localefile,'w') + + for line in lines: + outline = line + for locale in locale_list: + #print locale, line + if locale in line: + outline = line.replace('#','') + f.write(outline) + + f.close + +genlocale() |