From 463db327d20b40d7fc7f3db418f158c8747547d2 Mon Sep 17 00:00:00 2001 From: fritz-smh Date: Mon, 28 Mar 2016 21:15:50 +0200 Subject: [PATCH] Allow timezone config in the configuration file --- sd/test/equip_test.sh | 5 ++--- sd/test/yi-hack.cfg | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/sd/test/equip_test.sh b/sd/test/equip_test.sh index db96c00..0ffae05 100644 --- a/sd/test/equip_test.sh +++ b/sd/test/equip_test.sh @@ -82,9 +82,8 @@ log "Start telnet server..." telnetd & -### configure timezone -# paris winter -echo "GMT-1" > /etc/TZ +### configure timezone +echo "$(get_config TIMEZONE)" > /etc/TZ ### get time is done after wifi configuration! diff --git a/sd/test/yi-hack.cfg b/sd/test/yi-hack.cfg index 96e035c..e81b218 100644 --- a/sd/test/yi-hack.cfg +++ b/sd/test/yi-hack.cfg @@ -23,6 +23,9 @@ GATEWAY=192.168.1.254 # -boff -yoff : yellow off LED_WHEN_READY=-boff -bon +### Timezone +TIMEZONE=GMT-2 + ### NTP server NTP_SERVER=0.uk.pool.ntp.org