Changeset 28306


Ignore:
Timestamp:
2011-09-26T04:28:04+02:00 (6 years ago)
Author:
jow
Message:

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

Location:
trunk/package/base-files
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/Makefile

    r28291 r28306  
    1111 
    1212PKG_NAME:=base-files 
    13 PKG_RELEASE:=80 
     13PKG_RELEASE:=81 
    1414 
    1515PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/ 
     
    514514  define Package/glibc/install 
    515515        $(CP) ./glibc-files/* $(1)/ 
     516        rm -f $(1)/etc/localtime 
     517        ln -sf /tmp/localtime $(1)/etc/localtime 
    516518        $(INSTALL_DIR) $(1)/lib 
    517519        $(CP) \ 
  • trunk/package/base-files/files/etc/init.d/boot

    r27400 r28306  
    1919        config_get timezone "$cfg" timezone 'UTC' 
    2020        echo "$timezone" > /tmp/TZ 
     21 
     22        config_get zonename "$cfg" zonename 
     23        [ -n "$zonename" ] && [ -f "/usr/share/zoneinfo/$zonename" ] && ln -s "/usr/share/zoneinfo/$zonename" /tmp/localtime 
    2124 
    2225        if [ -x /sbin/syslogd ]; then 
Note: See TracChangeset for help on using the changeset viewer.