Message ID | 20210104033207.853389-1-rosenp@gmail.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=sU+UdfN2; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=Mj2Gqoqx; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4D8LpW09fvz9sRR for <incoming@patchwork.ozlabs.org>; Mon, 4 Jan 2021 14:34:27 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe :List-Id:MIME-Version:Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=LMYuZpCRm1nzL0qpf5A4a7oMCAX+FbIFfopzomSKsbg=; b=sU+UdfN2LZ9O9AU8nEHP9SraVq 1XOu0uuq3aecKaOhqJsePts/D1UxIqaRKIJTTOjH/Hxgu/Cqy8l1UaTA9hAdO/Sy6FXbbveXKjBsb NIV2VVZpnHDsdIrrC3jjo7HqQzwCiepMoIoD95iP/FQsi6oNskptFF9xwVFP9EEdAindz2LwoK8Cz x+Oiv92Pnv6jt+JF+PPMot/FQMGrfQw9PSfJqAznP0JhrXCA1cddZMaB5a1k2g2yoYcm62syfz2zH R7kyCQ+nuB1ShG6miR4PaNtPDV0wTLYleiRn1ychj3eS8PJdEvn9AtNowtK5+1BpPuzpx8rVn9ONI NBTG4X4Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kwGbR-00054l-8R; Mon, 04 Jan 2021 03:32:20 +0000 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kwGbM-00053i-6w for openwrt-devel@lists.openwrt.org; Mon, 04 Jan 2021 03:32:13 +0000 Received: by mail-pg1-x52f.google.com with SMTP id 30so13406616pgr.6 for <openwrt-devel@lists.openwrt.org>; Sun, 03 Jan 2021 19:32:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=zFvNFnvlJlj44DX6yLfHd9IFa8p4pQ7lbzyoZHfT9Nw=; b=Mj2GqoqxcpiepB/4be5///VxJ7Wb7TRsW6OomV5qujk8aCf0ajcl3OTGBxqG62mOSl ph4y3MrK1Z7Q700GXokO/Q48d7uh+PS9clpgwxWEAdOZIfo/LBrw7FPxXZctWYzrybSR TI5J6/IqiefiZhxsAxJZywqQa+Fp7gf7HmtDzNkihxXy+SUeHFBLp9ETGTd8F6Ynn+bb 4J5VSf+94ZEXoMGe4P4CoXBUH00pCJUORm8vK84FqMuSviCDlYsmIFvvwnQfpUOmbtDP zIskxnzsqAVUy5HAxo5v2Y9k7XxG6GMTPnQIiEJMI8Safi87MLns8GiKdhmKN4Ln0DXL 8hJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=zFvNFnvlJlj44DX6yLfHd9IFa8p4pQ7lbzyoZHfT9Nw=; b=QqXAyvrvIpeYlTDUjHfYWjZrpuFWpFe+grwxyYylQRd+ve/mIemQlPl+WurY2bK8Ev 02DSdwRKY3JdeOW0YLhXhjN8nEheLUUXPMKsM2uPMVZzHfVv5f23V3A4ksE4EqY+YA4m +kSwJ7aNE31069NzEAiiQ61Ga30MWIHb4kn674ZaGOme96Djh9pYYaoAVSar0raBPPiK tW2UPztJo0aIsP02mKpg0OfUTuwHDxfvqh0egMOyaFTjJdfrhXv3RRD3xl37ne1VbIMc Pp2I+xuAdgYCiZFomo+9LnTYCYM/h6QiQLzkMl7J3xBdeT4id46CGbtd6GMzxN+4TDuj d7qw== X-Gm-Message-State: AOAM533tFzmH4T+NhZIht3Tp1cHzcY11zdiGSHCYEXiJwvNeaPS1y6B6 wf+c4igUyh1/UaYIMrfP6xjUqEY2eple8Q== X-Google-Smtp-Source: ABdhPJwt0+8oJO3kL7mhEx2D+NBnvB1cjLHqHuZP71+14VK7ooagP/zejFSYPVEdkk8qF6v7WPm8gg== X-Received: by 2002:a65:5c09:: with SMTP id u9mr44917714pgr.143.1609731129647; Sun, 03 Jan 2021 19:32:09 -0800 (PST) Received: from mangix-trapnet.lan ([2001:470:1f05:79e::a89]) by smtp.gmail.com with ESMTPSA id 84sm55025845pfy.9.2021.01.03.19.32.08 for <openwrt-devel@lists.openwrt.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Jan 2021 19:32:08 -0800 (PST) From: Rosen Penev <rosenp@gmail.com> To: openwrt-devel@lists.openwrt.org Subject: [PATCHv2 1/3] base-files: use hwclock --systz Date: Sun, 3 Jan 2021 19:32:05 -0800 Message-Id: <20210104033207.853389-1-rosenp@gmail.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210103_223213_084717_F8A6CE7A X-CRM114-Status: GOOD ( 12.98 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:52f listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [rosenp[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: OpenWrt Development List <openwrt-devel.lists.openwrt.org> List-Unsubscribe: <https://lists.openwrt.org/mailman/options/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe> List-Archive: <http://lists.openwrt.org/pipermail/openwrt-devel/> List-Post: <mailto:openwrt-devel@lists.openwrt.org> List-Help: <mailto:openwrt-devel-request@lists.openwrt.org?subject=help> List-Subscribe: <https://lists.openwrt.org/mailman/listinfo/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "openwrt-devel" <openwrt-devel-bounces@lists.openwrt.org> Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org |
Series |
[PATCHv2,1/3] base-files: use hwclock --systz
|
expand
|
diff --git a/package/base-files/files/etc/init.d/system b/package/base-files/files/etc/init.d/system index 0e33c522b4..585eeeef7e 100755 --- a/package/base-files/files/etc/init.d/system +++ b/package/base-files/files/etc/init.d/system @@ -27,7 +27,7 @@ system_config() { ln -sf "/usr/share/zoneinfo/$zonename" /tmp/localtime && rm -f /tmp/TZ # apply timezone to kernel - busybox date -k + hwclock --systz } reload_service() {
The date -k patch is non standard and will be removed in the next commit. Tested behavior to be identical with a simple C program: #define _GNU_SOURCE #include <unistd.h> #include <stdio.h> #include <sys/time.h> #include <sys/syscall.h> int main() { struct timezone tt; struct timezone tz; int a = syscall(SYS_gettimeofday, NULL, &tt); int b = gettimeofday(NULL, &tz); printf("%d - %d, %d\n", a, tt.tz_minuteswest, tt.tz_dsttime); printf("%d - %d, %d\n", b, tz.tz_minuteswest, tz.tz_dsttime); } Signed-off-by: Rosen Penev <rosenp@gmail.com> --- v2: moved patch to the front for easier git bisect package/base-files/files/etc/init.d/system | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)