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 2ea5472..ef69e90 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
                }