diff options
author | Tom Gundersen <teg@jklm.no> | 2012-01-01 01:03:29 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2012-01-01 01:04:52 +0100 |
commit | 5dd3a4eb3e5405641bf3e5eaeac07883efd64c5e (patch) | |
tree | e29f7e5550df67933fa1ad705f1e1b4d0f01b55b /functions | |
parent | 6e62ab6a4346023674c7304cf05a5dfebdb265ba (diff) | |
download | initscripts-5dd3a4eb3e5405641bf3e5eaeac07883efd64c5e.tar.xz |
timezone: correct check for when there is nothing to do
We were unconditionally copying the zoneinfo file when we should
be doing nothing.
Reported-by: Leonid Isaev <lisaev@umail.iu.edu>
Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -401,7 +401,7 @@ read_crypttab() { } set_timezone() { - local tz=$1 zonefile=/usr/share/zoneinfo/$tz + local tz=$1 zonefile=/usr/share/zoneinfo/$1 [[ $tz ]] || return 1 |