diff options
author | Captain Throwback <captainthrowback@hotmail.com> | 2019-02-07 23:22:49 +0100 |
---|---|---|
committer | Captain Throwback <captainthrowback@hotmail.com> | 2019-03-07 18:34:15 +0100 |
commit | 5ab596451a0d4eb56f96083fc3e3c204401132e0 (patch) | |
tree | 2db3244a9bd7caf53b9ba2d208cd54a2b15f90e2 /prebuilt | |
parent | Merge "partition: add squashfs support" into android-9.0 (diff) | |
download | android_bootable_recovery-5ab596451a0d4eb56f96083fc3e3c204401132e0.tar android_bootable_recovery-5ab596451a0d4eb56f96083fc3e3c204401132e0.tar.gz android_bootable_recovery-5ab596451a0d4eb56f96083fc3e3c204401132e0.tar.bz2 android_bootable_recovery-5ab596451a0d4eb56f96083fc3e3c204401132e0.tar.lz android_bootable_recovery-5ab596451a0d4eb56f96083fc3e3c204401132e0.tar.xz android_bootable_recovery-5ab596451a0d4eb56f96083fc3e3c204401132e0.tar.zst android_bootable_recovery-5ab596451a0d4eb56f96083fc3e3c204401132e0.zip |
Diffstat (limited to '')
-rw-r--r-- | prebuilt/Android.mk | 12 | ||||
-rwxr-xr-x | prebuilt/mkshrc_twrp | 21 |
2 files changed, 33 insertions, 0 deletions
diff --git a/prebuilt/Android.mk b/prebuilt/Android.mk index 235b77c86..933326292 100644 --- a/prebuilt/Android.mk +++ b/prebuilt/Android.mk @@ -491,6 +491,18 @@ ifeq ($(TW_INCLUDE_DUMLOCK), true) include $(BUILD_PREBUILT) endif +ifeq ($(TW_USE_TOOLBOX), true) + include $(CLEAR_VARS) + LOCAL_MODULE := mkshrc_twrp + LOCAL_MODULE_TAGS := eng + LOCAL_MODULE_CLASS := ETC + LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/etc + LOCAL_SRC_FILES := $(LOCAL_MODULE) + LOCAL_POST_INSTALL_CMD := \ + $(hide) mv $(TARGET_RECOVERY_ROOT_OUT)/etc/mkshrc_twrp $(TARGET_RECOVERY_ROOT_OUT)/etc/mkshrc + include $(BUILD_PREBUILT) +endif + #TWRP App "placeholder" include $(CLEAR_VARS) LOCAL_MODULE := me.twrp.twrpapp.apk diff --git a/prebuilt/mkshrc_twrp b/prebuilt/mkshrc_twrp new file mode 100755 index 000000000..c103d6c56 --- /dev/null +++ b/prebuilt/mkshrc_twrp @@ -0,0 +1,21 @@ +# Copyright (c) 2010, 2012, 2013, 2014 +# Thorsten Glaser <tg@mirbsd.org> +# This file is provided under the same terms as mksh. +#- +# Minimal /system/etc/mkshrc for Android +# +# Support: https://launchpad.net/mksh + +: ${HOSTNAME:=$(getprop ro.product.device)} +: ${HOSTNAME:=android} +: ${TMPDIR:=/tmp} +export HOSTNAME TMPDIR + +if (( USER_ID )); then PS1='$'; else PS1='#'; fi +PS4='[$EPOCHREALTIME] '; PS1='${| + local e=$? + + (( e )) && REPLY+="$e|" + + return $e +}$HOSTNAME:${PWD:-?} '"$PS1 " |