Changeset 47980


Ignore:
Timestamp:
2015-12-23T15:44:31+01:00 (2 years ago)
Author:
blogic
Message:

base-files: allow timezone to be overriden by zonename (proper zoneinfo support)

Signed-off-by: Roman Yeryomin <roman@…>

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

Legend:

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

    r47886 r47980  
    1212 
    1313PKG_NAME:=base-files 
    14 PKG_RELEASE:=164 
     14PKG_RELEASE:=165 
    1515 
    1616PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/ 
     
    162162        $(LN) /tmp $(1)/var 
    163163        mkdir -p $(1)/etc 
    164         $(LN) /tmp/resolv.conf /tmp/fstab /tmp/TZ $(1)/etc/ 
     164        $(LN) /tmp/resolv.conf /tmp/fstab /tmp/TZ /tmp/localtime $(1)/etc/ 
    165165 
    166166        chmod 0600 $(1)/etc/shadow 
  • trunk/package/base-files/files/etc/init.d/system

    r42278 r47980  
    2828        [ -z "$conloglevel" -a -z "$buffersize" ] || dmesg ${conloglevel:+-n $conloglevel} ${buffersize:+-s $buffersize} 
    2929        echo "$timezone" > /tmp/TZ 
    30         [ -n "$zonename" ] && [ -f "/usr/share/zoneinfo/$zonename" ] && ln -s "/usr/share/zoneinfo/$zonename" /tmp/localtime 
     30        [ -n "$zonename" ] && [ -f "/usr/share/zoneinfo/$zonename" ] && \ 
     31                ln -sf "/usr/share/zoneinfo/$zonename" /tmp/localtime && rm -f /tmp/TZ 
    3132 
    3233        # apply timezone to kernel 
Note: See TracChangeset for help on using the changeset viewer.