]> git.webhop.me Git - bs-cst-neutrino-hd.git/commitdiff
one more timezone fix
authorMarkham <markham001@gmx.de>
Sun, 6 Nov 2022 15:33:29 +0000 (16:33 +0100)
committerMarkham <markham001@gmx.de>
Sun, 6 Nov 2022 15:33:29 +0000 (16:33 +0100)
make/libraries.mk

index 77c05f2931d81360a511c3805e9af9089a8d92b1..c2790fc3cb6b74f3b0102e170e69c95a52d45d38 100755 (executable)
@@ -1346,6 +1346,11 @@ $(D)/lzo: $(ARCHIVE)/lzo-$(LZO_VER).tar.gz | $(TARGETPREFIX)
        $(TOUCH)
 
 
+ifeq ($(BOXSERIES), hd2)
+DEFAULT_TZ="CET-1CEST,M3.5.0,M10.5.0/3"
+else
+DEFAULT_TZ="CET"
+endif
 TZDATA_ZONELIST = \
        africa antarctica asia australasia europe northamerica \
        southamerica etcetera backward factory
@@ -1371,6 +1376,11 @@ $(D)/timezone: $(ARCHIVE)/tzdata$(TZDATA_VER).tar.gz | find-zic $(TARGETPREFIX)
                        test -e zoneinfo/$$x || echo "WARNING: timezone $$x not found."; \
                done; \
                cp -ar zoneinfo $(TARGETPREFIX)/share/
+               echo ${DEFAULT_TZ} > $(TARGETPREFIX)/etc/timezone
+               ln -sf /usr/share/zoneinfo/CET /etc/localtime
+ifeq ($(BOXSERIES), hd2)
+               echo ${DEFAULT_TZ} > $(TARGETPREFIX)/etc/TZ
+endif
        install -m 0644 $(PATCHES)/timezone.xml $(TARGETPREFIX)/etc/
        $(REMOVE)/timezone
        $(TOUCH)