system now knows which timezone it is in
SVN-Revision: 11445
This commit is contained in:
parent
ab504da309
commit
0bf765b362
3 changed files with 6 additions and 1 deletions
|
@ -161,7 +161,7 @@ define Package/base-files$(TARGET)/install
|
|||
rm -f $(1)/var
|
||||
ln -sf /tmp $(1)/var
|
||||
mkdir -p $(1)/etc
|
||||
ln -sf /tmp/resolv.conf /tmp/fstab $(1)/etc/
|
||||
ln -sf /tmp/resolv.conf /tmp/fstab /tmp/TZ $(1)/etc/
|
||||
$(call Package/base-files/install-target,$(1))
|
||||
for conffile in $(1)/etc/config/*; do \
|
||||
if [ -f "$$$$conffile" ]; then \
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
config system
|
||||
option hostname OpenWrt
|
||||
option timezone UTC
|
||||
|
|
|
@ -12,6 +12,10 @@ system_config() {
|
|||
|
||||
config_get conloglevel "$cfg" conloglevel
|
||||
[ -n "$conloglevel" ] && dmesg -n "$conloglevel"
|
||||
|
||||
config_get timezone "$cfg" timezone
|
||||
[ -z "$timezone" ] && timezone=UTC
|
||||
echo "$timezone" > /tmp/TZ
|
||||
|
||||
config_get log_ip "$cfg" log_ip
|
||||
config_get log_size "$cfg" log_size
|
||||
|
|
Loading…
Reference in a new issue