summaryrefslogtreecommitdiff
path: root/package/dropbear/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-07-01 13:43:07 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-07-01 13:43:07 +0200
commitcd5672bc34e694b9f77a6eaa0aed58b64f226244 (patch)
tree401cf617849c51275eb9e90a7cab56c4dc83f57e /package/dropbear/Makefile
parente0c28ad930e27154c29752629e2eb280156208a8 (diff)
add the ability to add a ssh pubkey via menu
Diffstat (limited to 'package/dropbear/Makefile')
-rw-r--r--package/dropbear/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/dropbear/Makefile b/package/dropbear/Makefile
index 2ab254cd2..2e29902a7 100644
--- a/package/dropbear/Makefile
+++ b/package/dropbear/Makefile
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= dropbear
PKG_VERSION:= 0.52
-PKG_RELEASE:= 2
+PKG_RELEASE:= 3
PKG_MD5SUM:= 1c69ec674481d7745452f68f2ea5597e
PKG_DESCR:= SSH 2 server/client designed for embedded systems
PKG_SECTION:= net
@@ -62,5 +62,11 @@ do-install:
$(INSTALL_DIR) $(IDIR_DBCONVERT)/usr/bin
$(INSTALL_BIN) $(WRKBUILD)/dropbearconvert \
$(IDIR_DBCONVERT)/usr/bin/dropbearconvert
+ # ssh pubkey
+ test -z $(ADK_SSH_PUBKEY) || ( \
+ mkdir -p $(IDIR_DROPBEAR)/etc/dropbear; \
+ echo $(ADK_SSH_PUBKEY) \
+ >$(IDIR_DROPBEAR)/etc/dropbear/authorized_keys; \
+ )
include ${TOPDIR}/mk/pkg-bottom.mk