mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[package] base-files: use "zonename" system option to symlink /etc/localtime via /tmp/localtime to /usr/share/zoneinfo for glibc and eglibc
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28306 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user