From 5556fa605b5dc004cf8771411ce81bd2ad983b12 Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Thu, 5 Apr 2012 23:34:53 +0200 Subject: [PATCH] recovery: add LD_LIBRARY_PATH env. var to support TWRP recovery --- bootmenu/script/recovery.sh | 2 ++ bootmenu/script/recovery_stable.sh | 3 +++ 2 files changed, 5 insertions(+) diff --git a/bootmenu/script/recovery.sh b/bootmenu/script/recovery.sh index 91874315..8d890e7d 100755 --- a/bootmenu/script/recovery.sh +++ b/bootmenu/script/recovery.sh @@ -5,6 +5,8 @@ source /system/bootmenu/script/_config.sh +export LD_LIBRARY_PATH=.:/sbin + ######## Main Script ## /tmp folder can be a link to /data/tmp, bad thing ! diff --git a/bootmenu/script/recovery_stable.sh b/bootmenu/script/recovery_stable.sh index 8eca63e2..7bea68fb 100755 --- a/bootmenu/script/recovery_stable.sh +++ b/bootmenu/script/recovery_stable.sh @@ -3,9 +3,12 @@ ######## BootMenu Script ######## Execute [Stable Recovery] Menu +source /system/bootmenu/script/_config.sh export PATH=/sbin:/system/xbin:/system/bin +export LD_LIBRARY_PATH=.:/sbin + ######## Main Script PART_DATA=/dev/block/mmcblk1p25