Message ID | 20210418151557.1742304-1-linus.walleij@linaro.org |
---|---|
State | Accepted, archived |
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=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1:d65d:64ff:fe57:4e05; helo=desiato.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=<UNKNOWN>) 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=desiato.20200630 header.b=etLQx9pY; 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=MmTnJ6MU; dkim-atps=neutral Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) (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 4FNYVv02Fnz9vFm for <incoming@patchwork.ozlabs.org>; Mon, 19 Apr 2021 01:18:29 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=jkO5zriac+zNGBFIUw9IZuKre0Gnhj2Xa0wS//qPf9E=; b=etLQx9pYHWN/zJPjTLUB3/B3sl xRbDWuz/llnXlqrXoOPuI8djhk+lNpPhyqq9epzPSqH6SMfDHr5F8yYq3Q+xnwokaGR71UZdo57ZP c672oV14kIe98Gw3bp2ZWWUGHryQ54gQiqAsXqq8IaKSjgpiMc+EfEFD2PE8PGOsg3Cx3O8huhpT8 Alj1hi13DPWTfd3Z6AiZ5vhZY2QdGfVjutadG0qbyS4o8uefsy6VodjSwsy0B4ykcJBVgHsLVaKYM NdVYXXswygG6DDUCKbeRETg7aEhxj57oca7kcfA03KDkcWI0wSQBno8GJk5/UsApy79Rs8GE9C+qL 3kf2v1fA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lY99b-008C1D-9K; Sun, 18 Apr 2021 15:16:07 +0000 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lY99U-008C0G-HJ for openwrt-devel@lists.openwrt.org; Sun, 18 Apr 2021 15:16:03 +0000 Received: by mail-lj1-x22b.google.com with SMTP id a1so36477620ljp.2 for <openwrt-devel@lists.openwrt.org>; Sun, 18 Apr 2021 08:15:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KnNGGo+id2WWZmFr8oDDB5/D3I2SimFgxeOdrcDSRJQ=; b=MmTnJ6MU+gy8bTr0/AjIi/cCRyx3+tmqpfGKNHQr887MUfGXuyos8dkh8ovebHNRJp uwMExXV65BZxaYf3nQ2jiWfb+opqD7ZsodqHQJsu+3HkhECPlSHy+x0NvXOXcbjG4KnN TY5mb8MXjoE+gmpdSXy9of6ufRWnmDjVB2i4lU/nPuuqsTd1JpdRB84SFCXZiO9m05vj gl7+LNT/lPx1qaO1DQ/OGDCtnPNRfwr/LDtYlFwEsTt6NQ2DNLpm1SBYboJC+xgKhpZG C1vcrNl20haZPYOTCRwtcVGmrFoGGHqsxPbLyvzEzp0lB25bFBJrE/r7yds+TTl5sQJd Hgaw== 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:mime-version :content-transfer-encoding; bh=KnNGGo+id2WWZmFr8oDDB5/D3I2SimFgxeOdrcDSRJQ=; b=Nf5mAODVdDAselaNHkB1lrN4XLY4i1CVAUMEbPsXMN4tcG8OSkcR9sqo7dW0+TEIBA ob08DgLj8nmVByj9vwro0AEKWQoklUJdbi7B18DcIxUyOMjU/eqS+WJtgY97R2Zx18q2 Gwmw1VaOVw5rBE3PAdquVdZR7fFkPe4pl1xjIaPFF2s3oTap7lXH1rkvVOZUTPAbF0Lx j9wj31xUrK3arTE75AQRNf/A2xxe+l4r/koVhabW3eMVZ5docTmHfqawQ2Xlw9t69/xN JdG8kv8IjiFm84WLGp9ZoOg6NNsAPuaurKd8hWQC9cq/VqsMtA+Uj1mg0qA+qc9gTv5T ZDVA== X-Gm-Message-State: AOAM5303fh2U1THUZNoIHo2HHtuiXsRIlA2LOV5DJirmmNV9xr7OPkKY ma4PJ/lvbqKCFcv3qo/MRYhyNuxiQcpJ7g== X-Google-Smtp-Source: ABdhPJyTLSR7tEEveODRpl7NzkADznV+AIn3xBU9D3rUZqeW/SUz+gNtReaVszHS15kkiQppuI/o1A== X-Received: by 2002:a2e:9705:: with SMTP id r5mr8723505lji.187.1618758959177; Sun, 18 Apr 2021 08:15:59 -0700 (PDT) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id g11sm1559951lfv.128.2021.04.18.08.15.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Apr 2021 08:15:58 -0700 (PDT) From: Linus Walleij <linus.walleij@linaro.org> To: openwrt-devel@lists.openwrt.org Cc: Linus Walleij <linus.walleij@linaro.org> Subject: [PATCH] gemini: splash banner on framebuffer console Date: Sun, 18 Apr 2021 17:15:57 +0200 Message-Id: <20210418151557.1742304-1-linus.walleij@linaro.org> 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-20210418_161600_781510_2285CDA6 X-CRM114-Status: GOOD ( 12.18 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "desiato.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: The D-Link DIR-685 has a small screen with a framebuffer console, so if we have this, when we start, display the banner on this framebuffer console so the user know they are running OpenWRT as root fi [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:22b listed in] [list.dnswl.org] -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 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.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> 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 |
gemini: splash banner on framebuffer console
|
expand
|
diff --git a/target/linux/gemini/base-files/etc/board.d/03_splash b/target/linux/gemini/base-files/etc/board.d/03_splash new file mode 100755 index 000000000000..6fe5458046a2 --- /dev/null +++ b/target/linux/gemini/base-files/etc/board.d/03_splash @@ -0,0 +1,9 @@ +#!/bin/sh + +# OpenWRT splash screen if using framebuffer console +if [ ! -d /sys/class/graphics/fbcon ] ; then + exit 0 +fi + +echo 0 > /sys/class/graphics/fbcon/cursor_blink +cat /etc/banner > /dev/tty0
The D-Link DIR-685 has a small screen with a framebuffer console, so if we have this, when we start, display the banner on this framebuffer console so the user know they are running OpenWRT as root filesystem. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> --- This is nice on any routers with a screen. OK I guess there is just the one: D-Link DIR-685. If you know of more routers with screens I can try to make this more generic. Also need suggestions of where to put it in that case. target/linux/generic? --- target/linux/gemini/base-files/etc/board.d/03_splash | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 target/linux/gemini/base-files/etc/board.d/03_splash