mirror of
http://galexander.org/git/simplesshd.git
synced 2024-11-30 19:28:10 +00:00
when launching the sshd service, make sure the /sdcard/ssh path exists,
otherwise we won't be able to access dropbear.err
This commit is contained in:
parent
f652b1b3c6
commit
9c7454d222
@ -118,6 +118,7 @@ public class SimpleSSHDService extends Service {
|
|||||||
|
|
||||||
private static void do_start() {
|
private static void do_start() {
|
||||||
stop_sshd();
|
stop_sshd();
|
||||||
|
new File(Prefs.get_path()).mkdirs();
|
||||||
final int pid = start_sshd(Prefs.get_port(),
|
final int pid = start_sshd(Prefs.get_port(),
|
||||||
Prefs.get_path(), Prefs.get_shell(),
|
Prefs.get_path(), Prefs.get_shell(),
|
||||||
Prefs.get_home(), Prefs.get_extra(),
|
Prefs.get_home(), Prefs.get_extra(),
|
||||||
|
Loading…
Reference in New Issue
Block a user