diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-09-26 02:28:04 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-09-26 02:28:04 +0000 |
commit | bfbbe5893f92cd572c48c4d37fbd975f148093d6 (patch) | |
tree | 326e5b8b8c653c5ef864431a3b7fe3fcbaf927b6 /package/base-files/files/etc | |
parent | 29123aee6d3830161d1531d8487c8195d8df2f4f (diff) | |
download | mtk-20170518-bfbbe5893f92cd572c48c4d37fbd975f148093d6.zip mtk-20170518-bfbbe5893f92cd572c48c4d37fbd975f148093d6.tar.gz mtk-20170518-bfbbe5893f92cd572c48c4d37fbd975f148093d6.tar.bz2 |
base-files: use "zonename" system option to symlink /etc/localtime via /tmp/localtime to /usr/share/zoneinfo for glibc and eglibc
SVN-Revision: 28306
Diffstat (limited to 'package/base-files/files/etc')
-rwxr-xr-x | package/base-files/files/etc/init.d/boot | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot index 2fec48c..346d60d 100755 --- a/package/base-files/files/etc/init.d/boot +++ b/package/base-files/files/etc/init.d/boot @@ -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 |