summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/timezone
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/timezone')
-rw-r--r--meta/recipes-extended/timezone/tzdata.bb8
1 files changed, 2 insertions, 6 deletions
diff --git a/meta/recipes-extended/timezone/tzdata.bb b/meta/recipes-extended/timezone/tzdata.bb
index 1e2d9bd1b9..1e2b440fb0 100644
--- a/meta/recipes-extended/timezone/tzdata.bb
+++ b/meta/recipes-extended/timezone/tzdata.bb
@@ -60,12 +60,8 @@ pkg_postinst_${PN} () {
60 if [ -e ${src} ] ; then 60 if [ -e ${src} ] ; then
61 tz=$(sed -e 's:#.*::' -e 's:[[:space:]]*::g' -e '/^$/d' "${src}") 61 tz=$(sed -e 's:#.*::' -e 's:[[:space:]]*::g' -e '/^$/d' "${src}")
62 fi 62 fi
63 63
64 if [ -z "${tz}" ] ; then 64 if [ ! -z "${tz}" -a ! -e "$D${datadir}/zoneinfo/${tz}" ] ; then
65 exit 0
66 fi
67
68 if [ ! -e "$D${datadir}/zoneinfo/${tz}" ] ; then
69 echo "You have an invalid TIMEZONE setting in ${src}" 65 echo "You have an invalid TIMEZONE setting in ${src}"
70 echo "Your ${etc_lt} has been reset to Universal; enjoy!" 66 echo "Your ${etc_lt} has been reset to Universal; enjoy!"
71 tz="Universal" 67 tz="Universal"