From 22ad2cc9f7d92f9a8b20f33e4082c3d6af4dcb00 Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Thu, 27 Sep 2012 15:00:27 -0400 Subject: Create symlinks at compile time for busybox --- prebuilt/Android.mk | 18 ------------------ prebuilt/bbinstall.sh | 14 -------------- prebuilt/fs | 46 ---------------------------------------------- 3 files changed, 78 deletions(-) delete mode 100755 prebuilt/bbinstall.sh delete mode 100644 prebuilt/fs (limited to 'prebuilt') diff --git a/prebuilt/Android.mk b/prebuilt/Android.mk index 4796d06ff..048077a22 100644 --- a/prebuilt/Android.mk +++ b/prebuilt/Android.mk @@ -71,15 +71,6 @@ 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 @@ -89,15 +80,6 @@ LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin LOCAL_SRC_FILES := $(LOCAL_MODULE) include $(BUILD_PREBUILT) -#fs -include $(CLEAR_VARS) -LOCAL_MODULE := fs -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) - #mke2fs.conf include $(CLEAR_VARS) LOCAL_MODULE := mke2fs.conf diff --git a/prebuilt/bbinstall.sh b/prebuilt/bbinstall.sh deleted file mode 100755 index 2aab96958..000000000 --- a/prebuilt/bbinstall.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/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 diff --git a/prebuilt/fs b/prebuilt/fs deleted file mode 100644 index 3092efe2a..000000000 --- a/prebuilt/fs +++ /dev/null @@ -1,46 +0,0 @@ -#!/sbin/sh - -um -if [ $? != "0" ]; then - echo "Unable to unmount!" - exit 1 -fi - - -case $1 in - repair) - if [ -e /dev/block/mmcblk0p2 ]; then - - e2fsck -yf /dev/block/mmcblk0p2 - else - echo "No ext partition found!" - exit 1 - fi - exit 0 - ;; - ext3) - if [ -e /dev/block/mmcblk0p2 ]; then - - e2fsck -yf /dev/block/mmcblk0p2 - tune2fs -c0 -i0 -j /dev/block/mmcblk0p2 - else - echo "No ext partition found!" - exit 1 - fi - exit 0 - ;; - ext4) - if [ -e /dev/block/mmcblk0p2 ]; then - - tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p2 - e2fsck -fpDC0 /dev/block/mmcblk0p2 - else - echo "No ext partition found!" - exit 1 - fi - exit 0 - ;; - --) - exit 0 - ;; -esac -- cgit v1.2.3