From patchwork Fri Nov 1 08:55:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Kim_B=C3=B8ndergaard?= X-Patchwork-Id: 287742 X-Patchwork-Delegate: esben@haabendal.dk Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hugin.dotsrc.org (hugin.dotsrc.org [IPv6:2001:878:346::102]) by ozlabs.org (Postfix) with ESMTP id 730B32C00C5 for ; Fri, 1 Nov 2013 19:55:37 +1100 (EST) Received: from hugin.dotsrc.org (localhost [127.0.0.1]) by hugin.dotsrc.org (Postfix) with ESMTP id 274A4451C4 for ; Fri, 1 Nov 2013 09:55:33 +0100 (CET) X-Original-To: dev@oe-lite.org Delivered-To: dev@oe-lite.org Received: from mail01.prevas.se (mail01.prevas.se [62.95.78.3]) by hugin.dotsrc.org (Postfix) with ESMTPS id 537173FB83 for ; Fri, 1 Nov 2013 09:55:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=prevas.dk; i=@prevas.dk; l=800; q=dns/txt; s=ironport1; t=1383296130; x=1414832130; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=Y4nSlheEdTWv+pJFMXPaRUuTJ91R5CO68pHyuJg+Xp4=; b=bB9RbGp2oca3JzXJ27t+S4iqITPpnhiPwzbo+15fD9rAAIJmRsM6bIPJ FFWofrxTWuctsHHTNkyhsJWIyGZMMchwQMmZXj/X7UUtJybIpPERHwSLH zq2eK/0FrmM/zC3BtZK7XEQ+zbNI4Jr3Q9xRUHLPZ5KHDQ/RNvoa+CFma E=; X-IronPort-AV: E=Sophos;i="4.93,615,1378850400"; d="scan'208";a="4097050" Received: from vmprevas3.prevas.se (HELO smtp.prevas.se) ([172.16.8.103]) by ironport1.prevas.se with ESMTP/TLS/AES128-SHA; 01 Nov 2013 09:55:29 +0100 Received: from localhost (172.16.10.102) by smtp.prevas.se (172.16.8.105) with Microsoft SMTP Server id 14.2.347.0; Fri, 1 Nov 2013 09:55:29 +0100 Received: by localhost (Postfix, from userid 30019) id 50E04681505; Fri, 1 Nov 2013 08:55:29 +0000 (UTC) From: =?UTF-8?q?Kim=20B=C3=B8ndergaard?= To: , Subject: [PATCH 2/2] dropbear: If a host key exists in /etc/dropbear it will be used - even for ro fs Date: Fri, 1 Nov 2013 08:55:27 +0000 Message-ID: <7fce085bfb56ac0f4297f417bfa702702f864e7c.1383295764.git.kibo@prevas.dk> X-Mailer: git-send-email 1.8.4 In-Reply-To: References: MIME-Version: 1.0 Cc: =?UTF-8?q?Kim=20B=C3=B8ndergaard?= X-BeenThere: dev@oe-lite.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: OE-lite development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dev-bounces@oe-lite.org Errors-To: dev-bounces@oe-lite.org --- recipes/dropbear/dropbear/init | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/recipes/dropbear/dropbear/init b/recipes/dropbear/dropbear/init index 90de8e9..b05997e 100755 --- a/recipes/dropbear/dropbear/init +++ b/recipes/dropbear/dropbear/init @@ -45,6 +45,12 @@ else DROPBEAR_DSSKEY_DEFAULT="/etc/dropbear/dropbear_dss_host_key" fi +# If /etc file exist use this despite readonly +test -e /etc/dropbear/dropbear_rsa_host_key && \ + DROPBEAR_RSAKEY_DEFAULT="/etc/dropbear/dropbear_rsa_host_key" +test -e /etc/dropbear/dropbear_dss_host_key && \ + DROPBEAR_DSSKEY_DEFAULT="/etc/dropbear/dropbear_dss_host_key" + test -z "$DROPBEAR_BANNER" || \ DROPBEAR_EXTRA_ARGS="$DROPBEAR_EXTRA_ARGS -b $DROPBEAR_BANNER" test -n "$DROPBEAR_RSAKEY" || \