Closed GoogleCodeExporter closed 9 years ago
The statement is correct there:
[ ! -f "$rsa_key" ] || [ ! -f "$dss_key" ] is the same as [ ! -f "$rsa_key" -o
! -f "$dss_key" ]
Check your key files were moved from /etc/storage to /etc/storage/dropbear
Original comment by d...@soulblader.com
on 19 Aug 2013 at 8:39
I know both statements are correct and both SHOULD be working. However as you
can see from my original request: the one using the || creates and error on the
command line. The one using -o does not. I also can confirm that the one using
|| recreates the ssh keys on every boot.
I guess this is caused by a change in busybox, but I am not sure here.
Original comment by jord.sw...@gmail.com
on 19 Aug 2013 at 9:52
No, [ statement_0 || statement_n ] - is incorrect!
[ statement_0 ] || [ statement_n ] or [ statement_0 -o statement_n ] is the
correct form!
You tried construction not from sshd.sh, you forgot internal brackets...
Anyway, it seems the problem was that your keys were moved to wrong path. I
think it is fixed now, see:
https://code.google.com/p/rt-n56u/source/detail?r=00fc7e9d15269829ffe100549d99b8
5ba97064b7
Original comment by d...@soulblader.com
on 19 Aug 2013 at 10:07
I am sure that my sshd.sh had the incorrect line.
But if it is fixed, I am happy :-)
Original comment by jord.sw...@gmail.com
on 20 Aug 2013 at 7:27
Original comment by andy.pad...@gmail.com
on 1 Sep 2013 at 10:38
Original issue reported on code.google.com by
jord.sw...@jordswart.org
on 19 Aug 2013 at 6:51