summaryrefslogtreecommitdiff
path: root/service.sh
diff options
context:
space:
mode:
Diffstat (limited to 'service.sh')
-rwxr-xr-xservice.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/service.sh b/service.sh
new file mode 100755
index 0000000..2f4b72b
--- /dev/null
+++ b/service.sh
@@ -0,0 +1,13 @@
1#!/system/bin/sh
2
3set -eux
4
5MODDIR="${0%/*}"
6
7until [ $(getprop sys.boot_completed) ]; do
8 sleep 1
9done
10
11SSHD="$(which sshd)"
12
13nohup "$SSHD" -f "$MODDIR"/ssh/sshd_config -h "$MODDIR"/ssh/ssh_host_rsa_key -o "AuthorizedKeysFile $MODDIR/ssh/authorized_keys" > /dev/null &