From patchwork Tue Nov 3 12:20:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yousong Zhou X-Patchwork-Id: 1392998 X-Patchwork-Delegate: yszhou4tech@gmail.com Return-Path: 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=) 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=xsya5Zyn; 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=ZQKPgS+M; 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 4CQTVq17G7z9sVK for ; Tue, 3 Nov 2020 23:24:35 +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:Cc: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:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=DAZmSm17a9SurtoxP2bTXxjzOefz/w3fben5+W0YffQ=; b=xsya5ZynoI+SkGC/fjBz+GOiF CZMt+MtJ+sSArpd4bvVM8ElKcci0VE8/r9pzavCzuXyn8UG656rbLToCud799FCwNL4G0CPLymV5q zyD9XLvAIvrmmX0gTXGdhSdufKW2XDxQMfAWmIC1rRy5AWw3ZMijJm1vTPCFvzw4uqd5UyzR1ZCBw 3pHYHMSZL9aYWOjN9UQl9ZoU3x+5yIp073RMtMhddBesuoS6Zgaxjze1z0G7xYzlV+gBn0SU3KFKz +e6gVBDuk2eyev62pmOo53XlJIU9iZ31d10gPagS9J+4Hb+IIXQVOWweqPQpwLcvRtz4vGorvKHle M5V52kE/Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZvJj-0000tz-90; Tue, 03 Nov 2020 12:21:39 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZvJd-0000rB-7n for openwrt-devel@lists.openwrt.org; Tue, 03 Nov 2020 12:21:36 +0000 Received: by mail-pl1-x636.google.com with SMTP id x23so8499082plr.6 for ; Tue, 03 Nov 2020 04:21:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=le5z74NO4JajWV73cHDNoNh5bwbkPampGG7ycDYhu3g=; b=ZQKPgS+MDA12UAGrBbFdhy/fRRnLWaOYs4ZTf2Cg/Opr+7Ul/Y2ymqNNIiqNaE04J7 a3T31dNuo+viFoMctjUWIy+Y0stFZ4J4A/G7qbhK2M5u77pJJsy2GE0fmA+9PCZ1229W sAQnMR4gqTE7rs7hZ/E2N5exm0hle/T0o6eIx8JXshAxliTGVJ8O8NBCzM/rIsnr/2af tflaI/i59QQ8ZLuuyhmqCjsiHi8CrD0xtcgl5sPDMetgZp80ctoHvrUNG3QUCfzUbHnP QKz8xUF3cHrrXq3TafmKsvyMPL9xs3FVKVUAWntwEp8GTh9aCBP8FR9ZE2VMc25wb6FI CkzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=le5z74NO4JajWV73cHDNoNh5bwbkPampGG7ycDYhu3g=; b=N/Gy+GoIen7ks7+WjvDlJ8YeEJVtsM+kA9LP2QEeCXgOYLiT8A89Tds/KY6RCsUDHI 8zs6xAVYFIMVNfLNUTJGiCkqg5SVLsqAXb/2kC38wNKtOsl+0NGtZoli0nf38hm3vSdL toM8Ao7b7KmMecdTxDBf5JwxuKdxn7hNGL4y98WMqcFxfVRi1VwtjrFO+3MqoAp7mZ22 tuYa0xcBdiq/DxxqfsXScnVuxKFKMn5KWG7vULaLQcaFTsoVm705PcL6ceg3Pxu8KsLY F8gyqcuxElZ+TUtQ3xQCj+P0UoqxsEimSdyuZOIX4rT7hEuga0mU1l3uvKwyngHEwG0Z MBGg== X-Gm-Message-State: AOAM531Pj+PSO/rFy6jrmIgTRkNIVGneTdN8c/4Rky8Sn5ogkBQYcHnn IJG06w1pdYS+wHtj11vv6Dc= X-Google-Smtp-Source: ABdhPJwybzYPAV/ZuE3ecpz2mcaycWVrzL2lZLXWDJCcwgjeVL0O8ZlGOoZD0iS8dbeY2wmnMbPleQ== X-Received: by 2002:a17:902:21:b029:d2:564a:5dc6 with SMTP id 30-20020a1709020021b02900d2564a5dc6mr25345850pla.14.1604406087911; Tue, 03 Nov 2020 04:21:27 -0800 (PST) Received: from titan.office.yunion.io ([103.119.177.162]) by smtp.gmail.com with ESMTPSA id r17sm17516980pfc.157.2020.11.03.04.21.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Nov 2020 04:21:27 -0800 (PST) From: Yousong Zhou To: Philip Prindeville Subject: [PATCH 01/10] base-files: upgrade: log with prefix Date: Tue, 3 Nov 2020 20:20:58 +0800 Message-Id: <20201103122107.30400-2-yszhou4tech@gmail.com> In-Reply-To: <20201103122107.30400-1-yszhou4tech@gmail.com> References: <20201103122107.30400-1-yszhou4tech@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201103_072135_073935_8E070A55 X-CRM114-Status: GOOD ( 12.01 ) 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:636 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [yszhou4tech[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -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 X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yousong Zhou , openwrt-devel@lists.openwrt.org Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Signed-off-by: Yousong Zhou --- package/base-files/files/lib/upgrade/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh index 2eb26ba44b..56daabd778 100644 --- a/package/base-files/files/lib/upgrade/common.sh +++ b/package/base-files/files/lib/upgrade/common.sh @@ -64,7 +64,7 @@ ask_bool() { } v() { - [ -n "$VERBOSE" ] && [ "$VERBOSE" -ge 1 ] && echo "$@" + [ -n "$VERBOSE" ] && [ "$VERBOSE" -ge 1 ] && echo "== upgrade: $@" } json_string() {