diff options
author | Alexander Dahl <post@lespocky.de> | 2012-03-27 18:25:24 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-04-03 21:12:01 +0200 |
commit | cdfd09248b4455087580c95a9bfa1efd8dc6bccb (patch) | |
tree | 7648fc035dcd893a216b28fad7655d27eb106590 /rules/timezone.in | |
parent | 715ed909af46f032eec697e259c93df62b5cc661 (diff) | |
download | ptxdist-cdfd09248b4455087580c95a9bfa1efd8dc6bccb.tar.gz ptxdist-cdfd09248b4455087580c95a9bfa1efd8dc6bccb.tar.xz |
add /etc/timezone and replace content according to /etc/localtime
Additionally to /etc/localtime which points to one zoneinfo file in
/usr/share/zoneinfo there is /etc/timezone containing the system wide
zone. Debian updates both in parallel and systemd uses this too. It's
an easy way to find out about the current system time zone. Rules are
extended in a way you only have to put e.g. 'Europe/Berlin' to ptxdist
menuconfig and symlink /etc/localtime and file /etc/timezone are
created at build time.
This patch is a suggestion which works for me, open for discussion.
Signed-off-by: Alexander Dahl <post@lespocky.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/timezone.in')
-rw-r--r-- | rules/timezone.in | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/rules/timezone.in b/rules/timezone.in index a1ed5b146..33a05ebf2 100644 --- a/rules/timezone.in +++ b/rules/timezone.in @@ -14,14 +14,16 @@ menuconfig TIMEZONE comment "Timezone support" depends on TIMEZONE -config GLIBC_LOCALTIME_LINK - prompt "Link of /etc/localtime" +config GLIBC_LOCALTIME + prompt "Timezone for /etc/localtime and /etc/timezone" depends on TIMEZONE - default "/usr/share/zoneinfo/Europe/Berlin" + default "Europe/Berlin" string help - Where should /etc/localtime point to. - (e.g. /usr/share/zoneinfo/Europe/Berlin) + Where should /etc/localtime point to? (e.g. put in "Europe/Berlin" + here to let it point to /usr/share/zoneinfo/Europe/Berlin) + Additionally this value is written to /etc/timezone like on Debian + or for systemd. config TIMEZONE_LOCAL_DATABASE bool |