summaryrefslogtreecommitdiffstats
path: root/generic/etc
diff options
context:
space:
mode:
authorAlexander Stein <alexander.stein@systec-electronic.com>2010-07-15 14:59:36 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2010-07-16 22:52:43 +0200
commitcf24effedc247184b616ef8fb839585c31d0ca32 (patch)
treebcfd1b2bf8d2469ad4ce95b5cbca17bb8ed89e9b /generic/etc
parent6d2866f4b097c0f4e57c8c7e48d6f120616c36c3 (diff)
downloadptxdist-cf24effedc247184b616ef8fb839585c31d0ca32.tar.gz
ptxdist-cf24effedc247184b616ef8fb839585c31d0ca32.tar.xz
Allow a different key directory than /etc/dropbear
Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
Diffstat (limited to 'generic/etc')
-rw-r--r--generic/etc/init.d/dropbear4
-rw-r--r--generic/etc/rc.once.d/dropbear4
2 files changed, 4 insertions, 4 deletions
diff --git a/generic/etc/init.d/dropbear b/generic/etc/init.d/dropbear
index 31025a655..45f88024b 100644
--- a/generic/etc/init.d/dropbear
+++ b/generic/etc/init.d/dropbear
@@ -11,8 +11,8 @@ DROPBEAR_EXTRA_ARGS=
# test ! -h /var/service/dropbear || exit 0
-DROPBEAR_RSAKEY_DEFAULT="/etc/dropbear/dropbear_rsa_host_key"
-DROPBEAR_DSSKEY_DEFAULT="/etc/dropbear/dropbear_dss_host_key"
+DROPBEAR_RSAKEY_DEFAULT="@KEYDIR@/dropbear_rsa_host_key"
+DROPBEAR_DSSKEY_DEFAULT="@KEYDIR@/dropbear_dss_host_key"
test -z "$DROPBEAR_BANNER" || \
DROPBEAR_EXTRA_ARGS="$DROPBEAR_EXTRA_ARGS -b $DROPBEAR_BANNER"
diff --git a/generic/etc/rc.once.d/dropbear b/generic/etc/rc.once.d/dropbear
index d5d1843e6..121fa1366 100644
--- a/generic/etc/rc.once.d/dropbear
+++ b/generic/etc/rc.once.d/dropbear
@@ -2,8 +2,8 @@
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
-DROPBEAR_RSAKEY_DEFAULT="/etc/dropbear/dropbear_rsa_host_key"
-DROPBEAR_DSSKEY_DEFAULT="/etc/dropbear/dropbear_dss_host_key"
+DROPBEAR_RSAKEY_DEFAULT="@KEYDIR@/dropbear_rsa_host_key"
+DROPBEAR_DSSKEY_DEFAULT="@KEYDIR@/dropbear_dss_host_key"
test -n "$DROPBEAR_RSAKEY" || \
DROPBEAR_RSAKEY=$DROPBEAR_RSAKEY_DEFAULT