fix dropbear keygen
authorFelix Fietkau <nbd@openwrt.org>
Wed, 1 Nov 2006 18:11:44 +0000 (18:11 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 1 Nov 2006 18:11:44 +0000 (18:11 +0000)
SVN-Revision: 5375

package/dropbear/files/dropbear.init

index 2ea547267eb23ef4d88301b688c97effd4bc4d5f..ef69e9017603105f9a5d7c56e42d05b2c2fe7ba5 100755 (executable)
@@ -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
                }