summaryrefslogtreecommitdiffstats
path: root/prebuilt
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--prebuilt/Android.mk9
-rwxr-xr-xprebuilt/bbinstall.sh14
2 files changed, 23 insertions, 0 deletions
diff --git a/prebuilt/Android.mk b/prebuilt/Android.mk
index 048077a22..8b7c2f17a 100644
--- a/prebuilt/Android.mk
+++ b/prebuilt/Android.mk
@@ -71,6 +71,15 @@ LOCAL_GENERATED_SOURCES := $(GEN)
LOCAL_SRC_FILES := teamwin $(GEN)
include $(BUILD_PREBUILT)
+#bbinstall.sh
+include $(CLEAR_VARS)
+LOCAL_MODULE := bbinstall.sh
+LOCAL_MODULE_TAGS := eng
+LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
+LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
+LOCAL_SRC_FILES := $(LOCAL_MODULE)
+include $(BUILD_PREBUILT)
+
#fix_permissions
include $(CLEAR_VARS)
LOCAL_MODULE := fix_permissions.sh
diff --git a/prebuilt/bbinstall.sh b/prebuilt/bbinstall.sh
new file mode 100755
index 000000000..2aab96958
--- /dev/null
+++ b/prebuilt/bbinstall.sh
@@ -0,0 +1,14 @@
+#!/sbin/sh
+
+if [ -f "/sbin/[" ];
+then
+exit
+fi
+
+for cmd in $(/sbin/busybox --list); do
+ /sbin/busybox ln -s /sbin/busybox /sbin/$cmd
+done
+
+ln -sf /sbin/pigz /sbin/gzip
+ln -sf /sbin/unpigz /sbin/gunzip
+rm /sbin/mkdosfs \ No newline at end of file