Przeglądaj źródła

fix dropbear keygen

SVN-Revision: 5375
Felix Fietkau 19 lat temu
rodzic
commit
a640884663
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      package/dropbear/files/dropbear.init

+ 1 - 1
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
 		}