From patchwork Mon Jul 20 19:18:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Todor Colov X-Patchwork-Id: 1332614 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=abv.bg 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=E/Om33x/; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=abv.bg header.i=@abv.bg header.a=rsa-sha256 header.s=smtp-out header.b=enzYcaCZ; 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 4B9WlC4T3fz9sRR for ; Tue, 21 Jul 2020 05:20:07 +1000 (AEST) 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=HHHauWvxUJUmHFsN+7LireKB9lj9LZ0ijqvOMZ4CtoM=; b=E/Om33x/Ek8RibiFamDglWqdw xHZ5Kj6Mvxezs2pUB87JVNqjCBlJ5FK2RLaEjE7fiK+xvQE4yIGt6nWaEoDWNIqxOD+ZPQhSol1Ff R4oeGJ1n9uzwcc8OkjwkJmWWuCpfRJAlOakNcQRiOFu6unvO+BVufmohQO2O0FkZY7QK+RaosKhTJ j6zVALV+uSlbYOdOH9ecqRTpTAIg4caPPEDGaJYme5dWW3lund8++1vsKpuIEGoHTKl0z+8Hpos9P 5yai7TeVY4Hz/EoyuRD0WA/5zHHAAiyA/hUguZU5DK3k49j8RX8cT9330jPNDlf9MxjlbpWXauxQX xTSZSggqA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxbJG-0006pe-DD; Mon, 20 Jul 2020 19:18:46 +0000 Received: from pop31.abv.bg ([194.153.145.221]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxbJC-0006oW-MA for openwrt-devel@lists.openwrt.org; Mon, 20 Jul 2020 19:18:43 +0000 Received: from smtp.abv.bg (localhost [127.0.0.1]) by pop31.abv.bg (Postfix) with ESMTP id 8A8301805D2A; Mon, 20 Jul 2020 22:18:41 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=abv.bg; s=smtp-out; t=1595272721; bh=4aofQwHUUvg0x+xzI0mrcQxSTthHFMF0vZnJy+9HCkE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=enzYcaCZJoNDKcSgj4fLcT7nih83YgODAmx0Pq/ZU2FDjL3kt8yVKsML5woFBO3ed 1JYIYQm7pw4jEeVillkenEfb5+KyjegdaRwOWCDOGVktkfuxgad2yso5At70md7d8g oJb3Y8Xelkx1BVCV2cyq9szqHPgAgWNyRqz685sU= X-HELO: tchome.lan Authentication-Results: smtp.abv.bg; auth=pass (plain) smtp.auth=todorcolov@abv.bg Received: from unknown.interbgc.com (HELO tchome.lan) (130.204.242.199) by smtp.abv.bg (qpsmtpd/0.96) with ESMTPSA (ECDHE-RSA-AES256-GCM-SHA384 encrypted); Mon, 20 Jul 2020 22:18:41 +0300 From: Todor Colov To: openwrt-devel@lists.openwrt.org Subject: [PATCH 1/1] update factory reset for generic handling of all type of devices(jffs2, ubi, etc) Date: Mon, 20 Jul 2020 22:18:32 +0300 Message-Id: <20200720191832.3342-2-todorcolov@abv.bg> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200720191832.3342-1-todorcolov@abv.bg> References: <20200720191832.3342-1-todorcolov@abv.bg> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200720_151842_896813_8F27DFA6 X-CRM114-Status: UNSURE ( 6.76 ) X-CRM114-Notice: Please train this message. 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 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [todorcolov[at]abv.bg] -0.0 SPF_PASS SPF: sender matches SPF record -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_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.29 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Todor Colov Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Signed-off-by: Todor Colov --- package/base-files/files/etc/rc.button/reset | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/files/etc/rc.button/reset b/package/base-files/files/etc/rc.button/reset index 2403122ad2..0c11bfe462 100755 --- a/package/base-files/files/etc/rc.button/reset +++ b/package/base-files/files/etc/rc.button/reset @@ -23,7 +23,7 @@ released) elif [ "$SEEN" -ge 5 -a -n "$OVERLAY" ] then echo "FACTORY RESET" > /dev/console - jffs2reset -y && reboot & + rm -f /etc/config/* && cp -a /rom/etc/* /etc/. ; sync ; reboot fi ;; esac