Patches for knoppix-autoconfig
NW Dublin <[email protected]>
| Newsgroups | gmane.linux.debian.knoppix |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
attached are 3 small patches for knoppix-autoconfig and here's a brief
description of them (in order of importance):
fixtime
This patch does two things:
A: adds "export TZ" after it has finally set TZ from the cheatcode
B: moves the section of code that checks for the gmt or utc
cheatcodes and the hwclock call and places them after the TZ export
The reason for this is that hwclock uses the TZ environment variable so
when TZ isn't exported the hwclock assumes the wrong timezone. hwclock
was also being called before a tz= cheatcode had been dealt with.
ireland
This patch simply adds a lang=ie cheatcode for Ireland (English language).
lang
This patch cleans up the comments which name the languages so things are
capitalised consistently, full names are always given (i.e. Belgian not
BE, American not US) and the comment line appears in the same place in
each block.
Hope all above are ok.
Niall
knoppix-autoconfig.patch.lang
(text/plain, 947 B)
150d149 < # BE version 151a151 > # Belgian version 163d162 < # BG version 164a164 > # Bulgarian version 176d175 < # Swiss version (basically de with some modifications) 177a177 > # Swiss version (basically de with some modifications) 202d201 < # Czech version 203a203 > # Czech version 243c243 < # finnish version, though we may not have the kde-i18n files --- > # Finnish version, though we may not have the kde-i18n files 255c255 < # french version --- > # French version 280c280 < # italian version --- > # Italian version 292c292 < # (limited) japanese version --- > # (limited) Japanese version 305c305 < # netherland version --- > # Dutch version 352d351 < # Slovenian keyboard 353a353 > # Slovenian keyboard 378c378 < # Traditional chinese version (thanks to Chung-Yen Chang) --- > # Traditional Chinese version (thanks to Chung-Yen Chang) 393c393 < # british version --- > # British version 406c406 < # US version --- > # American version
knoppix-autoconfig.patch.fixtime
(text/plain, 444 B)
447,453d446 < # Set clock (Local time is more often used than GMT, so it is default) < UTC="" < checkbootparam utc >/dev/null 2>&1 && UTC="-u" < checkbootparam gmt >/dev/null 2>&1 && UTC="-u" < < hwclock $UTC -s < 487a481,488 > export TZ > > # Set clock (Local time is more often used than GMT, so it is default) > UTC="" > checkbootparam utc >/dev/null 2>&1 && UTC="-u" > checkbootparam gmt >/dev/null 2>&1 && UTC="-u" > > hwclock $UTC -s
knoppix-autoconfig.patch.ireland
(text/plain, 266 B)
278a279,290 > ie) > # Irish (English) version > COUNTRY="ie" > LANG="[email protected]" > KEYTABLE="uk" > XKEYBOARD="uk" > KDEKEYBOARD="gb" > CHARSET="iso8859-15" > #Additional KDE Keyboards > KDEKEYBOARDS="us,de,es,fr,it" > TZ="Europe/Dublin" > ;;