Message ID | 20230928-ixp4xx-v2-7-ce011eef8239@linaro.org |
---|---|
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@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=O9ttODFI; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=gkkQRrBW; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RxDsW3b3Dz1ynX for <incoming@patchwork.ozlabs.org>; Thu, 28 Sep 2023 23:31:43 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:In-Reply-To:References:Message-Id: MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ggZ0zFItbUyMlcaAc1DLkd9mPEH+Lom9hJO4M+uhBU0=; b=O9ttODFIEUjJSE p2DcJbYQd83713Ay/SuRv0rXnzxOwKa5OZWEHwY82JY8GkhAvVQO/tGRv76m48d/SSJdu+U33XVLO NiJlkQfPnaOAioqpZY9fxPu7USxpTbCi+BS2QlXci+QnWN712EqcHhwIhu849UU8P4rqEf0Rd7+0w bWTHjBdrmlT7RgNBCek4BIO0q6nlMaV7KlJ1MSEVNFbi2SKXYoTNasBTsne07BRfVphUt7n1FMlkT cVYP/G9lWWaW6VWKlJL7Xr71ghyZKgrATgcdA40JR1QVI4ztHayOV5Yftc6uH7dlX7gjaPTVpz3NH LB1CjG6NZq+zdy/86mLw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qlr4b-004Jjn-0m; Thu, 28 Sep 2023 13:28:57 +0000 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qlr4N-004JX0-3D for openwrt-devel@lists.openwrt.org; Thu, 28 Sep 2023 13:28:45 +0000 Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2c012232792so218832951fa.0 for <openwrt-devel@lists.openwrt.org>; Thu, 28 Sep 2023 06:28:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695907720; x=1696512520; darn=lists.openwrt.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=8qhjcstDdWHYTDL3NCyeuM7cRjkIGvStx1Zqm/R6Db0=; b=gkkQRrBW4pxEDMmhfNaJuKxYlKTz+R4tPbvPZ82D3Kp6n2IMqeAg5jBdALikLMC4mK Jg32N1jzuDHMN8dgBUy/Or715bj0f/YcsarfOnFg3x8BzT463KgVhjtPYYDFBl2dchnt +7R8UzdOL6sTQU1P5KqmJAVtwdJCZTbB22/P4kzG11gLYD0MQugphH/4ZSBUb80SoqGU TbSYiRpBcKBhGoYaWQPHfcsblDwaCqAXlO3Ap6ehh1HzygzA7/xTr+5/SSZeYx76YxuK q+NNSIYK5EefdvAzcjU63V2ShQgaKy/RbsCPP3REFyTvXVA/OKa9W1YsiYRG6S17AU0f mPmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695907720; x=1696512520; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8qhjcstDdWHYTDL3NCyeuM7cRjkIGvStx1Zqm/R6Db0=; b=Sgj9/zwlBbY6BFNDuRxikdy1VV4rlR0IFfpbDnv+vZ3AExGf0FOMtIVGwmWa8RB6yF WOGukjptju7FrH+iCKaSIGziETKtqEQXh7WO+M4ZpOMyUSLTJE2d2V1ojCzaGnZ3GfTE 4IKmgV+bsItr8X2ymNfKDyOsF2d0ufht1FBsxcqcrRqtOB+MPjkiEU/HPF0cEPlw3trQ ED8oALcuOIxpfMHR+fBnu59SI6/BiP3W5YGqxpnluv6csFVJcIOaFSnDLJu6hV3grC0/ BCv6od89njBPNPAn1bk+1AkryOsDbo0zqiYmQlS/eS+wDSarbGsoScygfPl2Cqcgtzts 6mGA== X-Gm-Message-State: AOJu0YzhhsHLcdP060zjNvPFHAb2p0LMpFRpHgbFlOTJwKpvyXE1Pdxg VpeVnm1dPje+UsqzEofTr/gwGA== X-Google-Smtp-Source: AGHT+IGe/e/LgEhKHJhTUHZgyM6ItOINCyDyPdU/iK/kbQO1z+matFRPGRryvPkEcCcBWSaenGeBJQ== X-Received: by 2002:a2e:7213:0:b0:2bd:d34:d98a with SMTP id n19-20020a2e7213000000b002bd0d34d98amr1137012ljc.44.1695907720176; Thu, 28 Sep 2023 06:28:40 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id c13-20020a05651c014d00b002c01ecf6c01sm3574690ljd.51.2023.09.28.06.28.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 06:28:39 -0700 (PDT) From: Linus Walleij <linus.walleij@linaro.org> Date: Thu, 28 Sep 2023 15:28:30 +0200 Subject: [PATCH v2 7/9] ixp4xx: Add hdparm script MIME-Version: 1.0 Message-Id: <20230928-ixp4xx-v2-7-ce011eef8239@linaro.org> References: <20230928-ixp4xx-v2-0-ce011eef8239@linaro.org> In-Reply-To: <20230928-ixp4xx-v2-0-ce011eef8239@linaro.org> To: Imre Kaloz <kaloz@openwrt.org>, Krzysztof Halasa <khalasa@piap.pl>, Howard Harte <hharte@magicandroidapps.com>, openwrt-devel@lists.openwrt.org X-Mailer: b4 0.12.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230928_062844_062064_E58EEC9A X-CRM114-Status: GOOD ( 10.51 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This script will make sure to spin down harddrives on IXP4xx NAS devices such as the NSLU2 and siblings after 1 minute of inactivity. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> --- target/linux/ixp4xx/base-files/etc/board.d/03_hdparm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:233 listed in] [list.dnswl.org] -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_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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 X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 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> Cc: Hauke Mehrtens <hauke@hauke-m.de>, Linus Walleij <linus.walleij@linaro.org>, Raylynn Knight <rayknight@me.com> 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 |
Resurrect OpenWrt IXP4xx support
|
expand
|
diff --git a/target/linux/ixp4xx/base-files/etc/board.d/03_hdparm b/target/linux/ixp4xx/base-files/etc/board.d/03_hdparm new file mode 100644 index 000000000000..27f2b760420e --- /dev/null +++ b/target/linux/ixp4xx/base-files/etc/board.d/03_hdparm @@ -0,0 +1,14 @@ +# SPDX-License-Identifier: GPL-2.0-only +# Spin down drives after one minute if inactive + +if [ ! -n "$(command -v hdparm)" ]; then + exit 0 +fi + +DISKS=$(find /dev/sd[a-z] 2>/dev/null) +for DISK in $DISKS +do + if [ -b $DISK ] ; then + hdparm -S 12 $DISK > /dev/null + fi +done
This script will make sure to spin down harddrives on IXP4xx NAS devices such as the NSLU2 and siblings after 1 minute of inactivity. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> --- target/linux/ixp4xx/base-files/etc/board.d/03_hdparm | 14 ++++++++++++++ 1 file changed, 14 insertions(+)