From 230b671528d44178cd61fc5ec312dcae2cfe572d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20L=C3=B3pez?= Date: Thu, 7 Apr 2011 22:28:27 +0000 Subject: [PATCH] Support built-in ramzswap This change adds a check for the ramzswap device. This is useful if the kernel includes ramzswap built-in and not as a module. Change-Id: I39105064c8fdd678ca3d7e332703b6040806f601 --- prebuilt/common/bin/compcache | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prebuilt/common/bin/compcache b/prebuilt/common/bin/compcache index 99be7738..2cd0bdef 100755 --- a/prebuilt/common/bin/compcache +++ b/prebuilt/common/bin/compcache @@ -5,8 +5,9 @@ # isramzswap="$(find /system/lib/modules/ -name ramzswap.ko 2>/dev/null)" +isramzswapbuiltin="$(ls -l /dev/block/ramzswap0 2>/dev/null)" -if [ -n "$isramzswap" ] ; then +if [ -n "$isramzswap$isramzswapbuiltin" ] ; then MODULE=ramzswap DEV=/dev/block/ramzswap0 else