Message ID | 20210104002405.758959-3-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=P/a/EAdh; 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=e5Lf1paO; 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 4D8HQf11M8z9s1l for <incoming@patchwork.ozlabs.org>; Mon, 4 Jan 2021 12:02:01 +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:References:In-Reply-To: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:List-Owner; bh=S3OpQsDpkNirDjCFoPcr/tgLZINgioHc+WIxW6jL3lA=; b=P/a/EAdhomGpI40Gbe/NsbB9DZ maacMOmsBrfq4WyMriRlp6I1DKUz2H/3c/NLdGZl7tKqom//ZOc4QJgc+9LXqQRsT9BjBjiWPLpfc 2fgxLFCwgEzy4jh9V1OBoMOCWq1oRB70WcXSD5aIakB/bvkLgspeM6s7WUFW9iwrXkuPcJKXerUxA 0EaEpOjdHWcUEUtcnnqN/3rGAJ9N2EjveDn048RxpOFXcqiejHuovWwocpbd8W46NmIvre+VV8TKj Halfvz0AZKaHk3/m4Qd7pYTZE1A8XImSys+eZXwvwHeolzeH64MvXyXSR90ye7AxFA0FQm7c7WMcs kB9PyQSw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kwDff-0006Kt-J7; Mon, 04 Jan 2021 00:24:27 +0000 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kwDfT-0006IB-2s for openwrt-devel@lists.openwrt.org; Mon, 04 Jan 2021 00:24:16 +0000 Received: by mail-pg1-x531.google.com with SMTP id p18so17667988pgm.11 for <openwrt-devel@lists.openwrt.org>; Sun, 03 Jan 2021 16:24: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:in-reply-to:references:mime-version :content-transfer-encoding; bh=QnPy6IUY5VLEVeQbWur//C+2rQYsGKr3Yx5gtyffNSQ=; b=e5Lf1paOvS7AIcJnkiek9OQnCWkIJTwteoumFPzYXjwFNGjXTwjxdWJIPT1W0T9WZf 4TMMkr+Ujh5tOyVr9yAAqF+8/4Zh8sfboN6P0SqR3FfFE+hNRYNyRCQcWS/PDFi3BlCC IUaWzKyTw6vfCx/POHoYI8Wp73QOKOajsKVcj/A8FD8kn0OBst91xK49oeYihADT0vV2 M9Cf00x9kBt5nMDejdgoPbV/fiZlm6VDUmwrSjnqRwNG6/Y8seOpEvQZJy+F/mpZ7gMh ylIKHn6E0aC7EAyIZIlR44pSDbsZwtm4dVjhj6NbKQSQqyPzdrL3jeHemW2ii9xhJHJ+ htmQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=QnPy6IUY5VLEVeQbWur//C+2rQYsGKr3Yx5gtyffNSQ=; b=DmOLPlVe406BqdC9IteGIvLKVlRVjomNXinJ0sjaOvIilt44u9jJZdPfNGd7LQIB0L fSrOimirI9230gm/xVb+S8m1tmedm4sburN2K5eNPXDUZcbKOWCyO3K7JoMrNAJkArUI vvGJJWIQLv+xDzoretNftJjTNtAZ6LgtgF8sYeDlY6fzDmgDl9n1rJ+A4D1Qs/dWN4L7 4pLp/x8GUxVWWKS/1L6EpEzVO2gt1XpUjpbs1SdTN3MCxlz5Q9wJm/6MPbgDk2zofKpr AJrfXbXekEE0o+qOpIKChT3nMwnE/LPTBDjgqhPc8RzJv4KR6/SvXzpqHKTIHJ+MtlhW HrDw== X-Gm-Message-State: AOAM532lFummT85q+IAPwxYfQpVzZaXtBDbU9YM18dj7T+fdzYTysAJi ln5+vOIrY/lQLGKXHMAzGXifWMvRmhKqlw== X-Google-Smtp-Source: ABdhPJxPSwuOouPHH+9h5akCPegBH+fe2k3iFDILECB1BFyu0YuFno7Uu6MDxuRMFwM//LARbrJ1kg== X-Received: by 2002:a62:bd05:0:b029:1ab:6d2:5edf with SMTP id a5-20020a62bd050000b02901ab06d25edfmr63159155pff.32.1609719849276; Sun, 03 Jan 2021 16:24:09 -0800 (PST) Received: from mangix-trapnet.lan ([2001:470:1f05:79e::a89]) by smtp.gmail.com with ESMTPSA id d124sm56936111pgc.68.2021.01.03.16.24.08 for <openwrt-devel@lists.openwrt.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Jan 2021 16:24:08 -0800 (PST) From: Rosen Penev <rosenp@gmail.com> To: openwrt-devel@lists.openwrt.org Subject: [PATCH 3/3] base-files: use hwclock --systz Date: Sun, 3 Jan 2021 16:24:05 -0800 Message-Id: <20210104002405.758959-3-rosenp@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210104002405.758959-1-rosenp@gmail.com> References: <20210104002405.758959-1-rosenp@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210103_192415_191806_D3774071 X-CRM114-Status: GOOD ( 12.99 ) 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:531 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 |
[1/3] busybox: update to 1.33
|
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 was removed. 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> --- package/base-files/files/etc/init.d/system | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)