summaryrefslogtreecommitdiff
path: root/package/dropbear/files/dropbear.init
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-11-01 18:11:44 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-11-01 18:11:44 +0000
commita640884663aa183d02d06b50aa95f9b3b2655e7d (patch)
tree19586afa6269403f4d9bb331f948401e93eb4fdf /package/dropbear/files/dropbear.init
parente7614e91b9a29e7b61cc5d4da4138dfef91a19dd (diff)
downloadmtk-20170518-a640884663aa183d02d06b50aa95f9b3b2655e7d.zip
mtk-20170518-a640884663aa183d02d06b50aa95f9b3b2655e7d.tar.gz
mtk-20170518-a640884663aa183d02d06b50aa95f9b3b2655e7d.tar.bz2
fix dropbear keygen
SVN-Revision: 5375
Diffstat (limited to 'package/dropbear/files/dropbear.init')
-rwxr-xr-xpackage/dropbear/files/dropbear.init2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/dropbear/files/dropbear.init b/package/dropbear/files/dropbear.init
index 2ea5472..ef69e90 100755
--- a/package/dropbear/files/dropbear.init
+++ b/package/dropbear/files/dropbear.init
@@ -29,7 +29,7 @@ keygen() {
# generate missing keys
mkdir -p /tmp/dropbear
[ -x /usr/bin/dropbearkey ] && {
- /usr/bin/dropbearkey -t $keytype -f /etc/$key 2>&- >&- && exec /etc/rc.common "$initscript" start
+ /usr/bin/dropbearkey -t $keytype -f /tmp/$key 2>&- >&- && exec /etc/rc.common "$initscript" start
} &
exit 0
}