diff options
Diffstat (limited to '')
| -rwxr-xr-x | ssh/setup-connection | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ssh/setup-connection b/ssh/setup-connection new file mode 100755 index 0000000..b0e59da --- /dev/null +++ b/ssh/setup-connection | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | #!/system/xbin/bash | ||
| 2 | |||
| 3 | export ANDROID_ASSETS=/system/app | ||
| 4 | export ANDROID_BOOTLOGO=1 | ||
| 5 | export ANDROID_CACHE=/cache | ||
| 6 | export ANDROID_DATA=/data | ||
| 7 | export ANDROID_ROOT=/system | ||
| 8 | export ANDROID_RUNTIME_ROOT=/apex/com.android.runtime | ||
| 9 | export ANDROID_STORAGE=/storage | ||
| 10 | export ANDROID_TZDATA_ROOT=/apex/com.android.tzdata | ||
| 11 | export ASEC_MOUNTPOINT=/mnt/asec | ||
| 12 | export DOWNLOAD_CACHE=/data/cache | ||
| 13 | export EXTERNAL_STORAGE=/sdcard | ||
| 14 | |||
| 15 | if [[ "$SSH_ORIGINAL_COMMAND" == "" ]]; then | ||
| 16 | exec /system/xbin/bash -i | ||
| 17 | else | ||
| 18 | exec /system/xbin/bash -c "$SSH_ORIGINAL_COMMAND" | ||
| 19 | fi | ||
