From ce2fe779c028eeb198120b6d43e0a242a7113465 Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Fri, 28 Sep 2012 12:34:33 -0400 Subject: Revert busybox for CM7 compatibility, add exclamation point to format data --- prebuilt/Android.mk | 9 +++++++++ prebuilt/bbinstall.sh | 14 ++++++++++++++ 2 files changed, 23 insertions(+) create mode 100755 prebuilt/bbinstall.sh (limited to 'prebuilt') 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 -- cgit v1.2.3