aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/linux/modules/other.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-06-19 17:48:11 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-06-19 17:48:11 +0000
commit7b4d039e00b0e29f416c21a022ce2a6db23a4c30 (patch)
treeb94bb63c1054ccf2b9f21999b23c52fa00bdaff3 /package/kernel/linux/modules/other.mk
parent23633249c80c8ae886569058349e345d3a905bbc (diff)
downloadupstream-7b4d039e00b0e29f416c21a022ce2a6db23a4c30.tar.gz
upstream-7b4d039e00b0e29f416c21a022ce2a6db23a4c30.tar.bz2
upstream-7b4d039e00b0e29f416c21a022ce2a6db23a4c30.zip
musl: read the timezone from /etc/TZ
Currently the OpenWRT boot scripts write the timezone configuration to /tmp/TZ, relying on the behaviour of uClibc that the timezone is read from /etc/TZ if no TZ env variable is found. This works because /etc/TZ is a symlink to /tmp/TZ. Musl libc however only reads the timezone from the TZ env variable and if it doesn't find it or it's empty, it will look for a zoneinfo file, that doesn't exist. So in musl builds no timezone is ever set. This patch fixes the issue by having musl libc behave like uClibc: if no TZ env variable is found it will try to load it from /etc/TZ. Signed-off-by: Gianluca Anzolin <gianluca at sottospazio.it> Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46069
Diffstat (limited to 'package/kernel/linux/modules/other.mk')
0 files changed, 0 insertions, 0 deletions
3' href='#n143'>143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224