2
0
forked from Ivasoft/openwrt

base-files: use "zonename" system option to symlink /etc/localtime via /tmp/localtime to /usr/share/zoneinfo for glibc and eglibc

SVN-Revision: 28306
This commit is contained in:
Jo-Philipp Wich
2011-09-26 02:28:04 +00:00
parent 29123aee6d
commit bfbbe5893f
2 changed files with 6 additions and 1 deletions

View File

@@ -19,6 +19,9 @@ system_config() {
config_get timezone "$cfg" timezone 'UTC'
echo "$timezone" > /tmp/TZ
config_get zonename "$cfg" zonename
[ -n "$zonename" ] && [ -f "/usr/share/zoneinfo/$zonename" ] && ln -s "/usr/share/zoneinfo/$zonename" /tmp/localtime
if [ -x /sbin/syslogd ]; then
local log_ip log_size log_port log_type log_file
config_get log_ip "$cfg" log_ip