mirror of http://galexander.org/git/simplesshd.git
parent
3112a7ecb3
commit
3620b17411
@ -0,0 +1,15 @@
|
|||||||
|
package org.galexander.sshd;
|
||||||
|
|
||||||
|
import android.content.BroadcastReceiver;
|
||||||
|
import android.content.Intent;
|
||||||
|
import android.content.Context;
|
||||||
|
|
||||||
|
public class BootReceiver extends BroadcastReceiver {
|
||||||
|
public void onReceive(Context context, Intent intent) {
|
||||||
|
Prefs.init(context);
|
||||||
|
if (Prefs.get_onboot()) {
|
||||||
|
context.startService(new Intent(context,
|
||||||
|
SimpleSSHDService.class));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue